OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 gfx::NativeView context) override; | 89 gfx::NativeView context) override; |
90 RenderWidgetHostViewBase* CreateViewForWidget( | 90 RenderWidgetHostViewBase* CreateViewForWidget( |
91 RenderWidgetHost* render_widget_host, | 91 RenderWidgetHost* render_widget_host, |
92 bool is_guest_view_hack) override; | 92 bool is_guest_view_hack) override; |
93 RenderWidgetHostViewBase* CreateViewForPopupWidget( | 93 RenderWidgetHostViewBase* CreateViewForPopupWidget( |
94 RenderWidgetHost* render_widget_host) override; | 94 RenderWidgetHost* render_widget_host) override; |
95 void SetPageTitle(const base::string16& title) override; | 95 void SetPageTitle(const base::string16& title) override; |
96 void RenderViewCreated(RenderViewHost* host) override; | 96 void RenderViewCreated(RenderViewHost* host) override; |
97 void RenderViewSwappedIn(RenderViewHost* host) override; | 97 void RenderViewSwappedIn(RenderViewHost* host) override; |
98 void SetOverscrollControllerEnabled(bool enabled) override; | 98 void SetOverscrollControllerEnabled(bool enabled) override; |
| 99 ui::Compositor* GetCompositor() const override; |
99 bool IsEventTracking() const override; | 100 bool IsEventTracking() const override; |
100 void CloseTabAfterEventTracking() override; | 101 void CloseTabAfterEventTracking() override; |
101 | 102 |
102 // Backend implementation of RenderViewHostDelegateView. | 103 // Backend implementation of RenderViewHostDelegateView. |
103 void ShowContextMenu(RenderFrameHost* render_frame_host, | 104 void ShowContextMenu(RenderFrameHost* render_frame_host, |
104 const ContextMenuParams& params) override; | 105 const ContextMenuParams& params) override; |
105 void ShowPopupMenu(RenderFrameHost* render_frame_host, | 106 void ShowPopupMenu(RenderFrameHost* render_frame_host, |
106 const gfx::Rect& bounds, | 107 const gfx::Rect& bounds, |
107 int item_height, | 108 int item_height, |
108 double item_font_size, | 109 double item_font_size, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 bool allow_other_views_; | 151 bool allow_other_views_; |
151 | 152 |
152 std::unique_ptr<PopupMenuHelper> popup_menu_helper_; | 153 std::unique_ptr<PopupMenuHelper> popup_menu_helper_; |
153 | 154 |
154 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 155 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
155 }; | 156 }; |
156 | 157 |
157 } // namespace content | 158 } // namespace content |
158 | 159 |
159 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 160 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |