inspectable_web_contents_view_mac.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_
  2. #define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_
  3. #include "brightray/browser/inspectable_web_contents_view.h"
  4. #include "base/mac/scoped_nsobject.h"
  5. @class BRYInspectableWebContentsView;
  6. namespace brightray {
  7. class InspectableWebContentsImpl;
  8. class InspectableWebContentsViewMac : public InspectableWebContentsView {
  9. public:
  10. explicit InspectableWebContentsViewMac(
  11. InspectableWebContentsImpl* inspectable_web_contents_impl);
  12. ~InspectableWebContentsViewMac() override;
  13. gfx::NativeView GetNativeView() const override;
  14. void ShowDevTools() override;
  15. void CloseDevTools() override;
  16. bool IsDevToolsViewShowing() override;
  17. bool IsDevToolsViewFocused() override;
  18. void SetIsDocked(bool docked) override;
  19. void SetContentsResizingStrategy(
  20. const DevToolsContentsResizingStrategy& strategy) override;
  21. void SetTitle(const base::string16& title) override;
  22. InspectableWebContentsImpl* inspectable_web_contents() {
  23. return inspectable_web_contents_;
  24. }
  25. private:
  26. // Owns us.
  27. InspectableWebContentsImpl* inspectable_web_contents_;
  28. base::scoped_nsobject<BRYInspectableWebContentsView> view_;
  29. DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewMac);
  30. };
  31. } // namespace brightray
  32. #endif // BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_