OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 11 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/cursors/webcursor.h" | 13 #include "content/common/cursors/webcursor.h" |
14 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
15 #include "ui/events/gestures/gesture_recognizer.h" | 15 #include "ui/events/gestures/gesture_recognizer.h" |
16 #include "ui/events/gestures/gesture_types.h" | 16 #include "ui/events/gestures/gesture_types.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/gfx/vector2d_f.h" | 19 #include "ui/gfx/vector2d_f.h" |
20 | 20 |
21 #if defined(TOOLKIT_GTK) | |
22 #include "content/browser/renderer_host/gtk_plugin_container_manager.h" | |
23 #endif // defined(TOOLKIT_GTK) | |
24 | |
25 namespace content { | 21 namespace content { |
26 class RenderWidgetHost; | 22 class RenderWidgetHost; |
27 class RenderWidgetHostImpl; | 23 class RenderWidgetHostImpl; |
28 class BrowserPluginGuest; | 24 class BrowserPluginGuest; |
29 struct NativeWebKeyboardEvent; | 25 struct NativeWebKeyboardEvent; |
30 | 26 |
31 // See comments in render_widget_host_view.h about this class and its members. | 27 // See comments in render_widget_host_view.h about this class and its members. |
32 // This version is for the BrowserPlugin which handles a lot of the | 28 // This version is for the BrowserPlugin which handles a lot of the |
33 // functionality in a diffent place and isn't platform specific. | 29 // functionality in a diffent place and isn't platform specific. |
34 // The BrowserPlugin is currently a special case for out-of-process rendered | 30 // The BrowserPlugin is currently a special case for out-of-process rendered |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual bool PostProcessEventForPluginIme( | 138 virtual bool PostProcessEventForPluginIme( |
143 const NativeWebKeyboardEvent& event) OVERRIDE; | 139 const NativeWebKeyboardEvent& event) OVERRIDE; |
144 #endif // defined(OS_MACOSX) | 140 #endif // defined(OS_MACOSX) |
145 | 141 |
146 #if defined(OS_ANDROID) | 142 #if defined(OS_ANDROID) |
147 // RenderWidgetHostViewPort implementation. | 143 // RenderWidgetHostViewPort implementation. |
148 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 144 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
149 const SkBitmap& zoomed_bitmap) OVERRIDE; | 145 const SkBitmap& zoomed_bitmap) OVERRIDE; |
150 #endif // defined(OS_ANDROID) | 146 #endif // defined(OS_ANDROID) |
151 | 147 |
152 #if defined(TOOLKIT_GTK) | |
153 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; | |
154 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; | |
155 #endif // defined(TOOLKIT_GTK) | |
156 | |
157 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
158 virtual void SetParentNativeViewAccessible( | 149 virtual void SetParentNativeViewAccessible( |
159 gfx::NativeViewAccessible accessible_parent) OVERRIDE; | 150 gfx::NativeViewAccessible accessible_parent) OVERRIDE; |
160 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; | 151 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; |
161 #endif | 152 #endif |
162 | 153 |
163 // Overridden from ui::GestureEventHelper. | 154 // Overridden from ui::GestureEventHelper. |
164 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; | 155 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; |
165 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; | 156 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; |
166 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; | 157 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
190 RenderWidgetHostViewPort* platform_view_; | 181 RenderWidgetHostViewPort* platform_view_; |
191 #if defined(OS_WIN) || defined(USE_AURA) | 182 #if defined(OS_WIN) || defined(USE_AURA) |
192 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 183 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
193 #endif // defined(OS_WIN) || defined(USE_AURA) | 184 #endif // defined(OS_WIN) || defined(USE_AURA) |
194 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 185 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
195 }; | 186 }; |
196 | 187 |
197 } // namespace content | 188 } // namespace content |
198 | 189 |
199 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 190 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |