inspectable_web_contents_view_delegate.h 821 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
  2. #define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
  3. #include <string>
  4. #include "ui/gfx/image/image_skia.h"
  5. namespace brightray {
  6. class InspectableWebContentsViewDelegate {
  7. public:
  8. virtual ~InspectableWebContentsViewDelegate() {}
  9. virtual void DevToolsFocused() {}
  10. virtual void DevToolsOpened() {}
  11. virtual void DevToolsClosed() {}
  12. // Returns the icon of devtools window.
  13. virtual gfx::ImageSkia GetDevToolsWindowIcon();
  14. #if defined(USE_X11)
  15. // Called when creating devtools window.
  16. virtual void GetDevToolsWindowWMClass(std::string* name,
  17. std::string* class_name) {}
  18. #endif
  19. };
  20. } // namespace brightray
  21. #endif // BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_