inspectable_web_contents_view_delegate.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Copyright (c) 2013 Adam Roben <[email protected]>. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license that can be
  4. // found in the LICENSE-CHROMIUM file.
  5. #ifndef SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
  6. #define SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
  7. #include <string>
  8. #include "ui/base/models/image_model.h"
  9. namespace electron {
  10. class InspectableWebContentsViewDelegate {
  11. public:
  12. virtual ~InspectableWebContentsViewDelegate() {}
  13. virtual void DevToolsFocused() {}
  14. virtual void DevToolsOpened() {}
  15. virtual void DevToolsClosed() {}
  16. virtual void DevToolsResized() {}
  17. // Returns the icon of devtools window.
  18. virtual ui::ImageModel GetDevToolsWindowIcon();
  19. #if defined(OS_LINUX)
  20. // Called when creating devtools window.
  21. virtual void GetDevToolsWindowWMClass(std::string* name,
  22. std::string* class_name) {}
  23. #endif
  24. };
  25. } // namespace electron
  26. #endif // SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_