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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_RENDERER_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/renderer_host/render_widget_host_view_base.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "ui/base/events/event.h" | 13 #include "ui/base/events/event.h" |
14 #include "ui/base/gestures/gesture_recognizer.h" | 14 #include "ui/base/gestures/gesture_recognizer.h" |
15 #include "ui/base/gestures/gesture_types.h" | 15 #include "ui/base/gestures/gesture_types.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 #include "ui/gfx/vector2d_f.h" | 18 #include "ui/gfx/vector2d_f.h" |
19 #include "webkit/common/cursors/webcursor.h" | 19 #include "webkit/common/cursors/webcursor.h" |
20 | 20 |
21 #if defined(TOOLKIT_GTK) | 21 #if defined(TOOLKIT_GTK) |
22 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" | 22 #include "content/browser/renderer_host/gtk_plugin_container_manager.h" |
23 #endif // defined(TOOLKIT_GTK) | 23 #endif // defined(TOOLKIT_GTK) |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 class RenderWidgetHost; | 26 class RenderWidgetHost; |
27 class RenderWidgetHostImpl; | 27 class RenderWidgetHostImpl; |
28 class BrowserPluginGuest; | 28 class BrowserPluginGuest; |
29 struct NativeWebKeyboardEvent; | 29 struct NativeWebKeyboardEvent; |
30 | 30 |
31 // ----------------------------------------------------------------------------- | 31 // ----------------------------------------------------------------------------- |
32 // See comments in render_widget_host_view.h about this class and its members. | 32 // See comments in render_widget_host_view.h about this class and its members. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // RenderWidgetHostViewPort implementation. | 73 // RenderWidgetHostViewPort implementation. |
74 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 74 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
75 const gfx::Rect& pos) OVERRIDE; | 75 const gfx::Rect& pos) OVERRIDE; |
76 virtual void InitAsFullscreen( | 76 virtual void InitAsFullscreen( |
77 RenderWidgetHostView* reference_host_view) OVERRIDE; | 77 RenderWidgetHostView* reference_host_view) OVERRIDE; |
78 virtual void WasShown() OVERRIDE; | 78 virtual void WasShown() OVERRIDE; |
79 virtual void WasHidden() OVERRIDE; | 79 virtual void WasHidden() OVERRIDE; |
80 virtual void MovePluginWindows( | 80 virtual void MovePluginWindows( |
81 const gfx::Vector2d& scroll_offset, | 81 const gfx::Vector2d& scroll_offset, |
82 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 82 const std::vector<WebPluginGeometry>& moves) OVERRIDE; |
83 virtual void Focus() OVERRIDE; | 83 virtual void Focus() OVERRIDE; |
84 virtual void Blur() OVERRIDE; | 84 virtual void Blur() OVERRIDE; |
85 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 85 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
86 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 86 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
87 virtual void TextInputTypeChanged(ui::TextInputType type, | 87 virtual void TextInputTypeChanged(ui::TextInputType type, |
88 bool can_compose_inline, | 88 bool can_compose_inline, |
89 ui::TextInputMode input_mode) OVERRIDE; | 89 ui::TextInputMode input_mode) OVERRIDE; |
90 virtual void ImeCancelComposition() OVERRIDE; | 90 virtual void ImeCancelComposition() OVERRIDE; |
91 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) | 91 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
92 virtual void ImeCompositionRangeChanged( | 92 virtual void ImeCompositionRangeChanged( |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 RenderWidgetHostViewPort* platform_view_; | 217 RenderWidgetHostViewPort* platform_view_; |
218 #if defined(OS_WIN) || defined(USE_AURA) | 218 #if defined(OS_WIN) || defined(USE_AURA) |
219 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 219 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
220 #endif // defined(OS_WIN) || defined(USE_AURA) | 220 #endif // defined(OS_WIN) || defined(USE_AURA) |
221 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 221 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
222 }; | 222 }; |
223 | 223 |
224 } // namespace content | 224 } // namespace content |
225 | 225 |
226 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 226 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |