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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 16 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "content/common/cursors/webcursor.h" | 18 #include "content/common/cursors/webcursor.h" |
19 #include "third_party/WebKit/public/web/WebInputEvent.h" | 19 #include "third_party/WebKit/public/web/WebInputEvent.h" |
20 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
21 #include "ui/events/gestures/gesture_recognizer.h" | 21 #include "ui/events/gestures/gesture_recognizer.h" |
22 #include "ui/events/gestures/gesture_types.h" | 22 #include "ui/events/gestures/gesture_types.h" |
23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/geometry/vector2d_f.h" | 24 #include "ui/gfx/geometry/vector2d_f.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
| 27 struct ViewHostMsg_TextInputState_Params; |
| 28 |
27 namespace content { | 29 namespace content { |
28 class BrowserPluginGuest; | 30 class BrowserPluginGuest; |
29 class RenderWidgetHost; | 31 class RenderWidgetHost; |
30 class RenderWidgetHostImpl; | 32 class RenderWidgetHostImpl; |
31 struct NativeWebKeyboardEvent; | 33 struct NativeWebKeyboardEvent; |
32 | 34 |
33 // See comments in render_widget_host_view.h about this class and its members. | 35 // See comments in render_widget_host_view.h about this class and its members. |
34 // This version is for the BrowserPlugin which handles a lot of the | 36 // This version is for the BrowserPlugin which handles a lot of the |
35 // functionality in a diffent place and isn't platform specific. | 37 // functionality in a diffent place and isn't platform specific. |
36 // The BrowserPlugin is currently a special case for out-of-process rendered | 38 // The BrowserPlugin is currently a special case for out-of-process rendered |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 gfx::Rect GetBoundsInRootWindow() override; | 71 gfx::Rect GetBoundsInRootWindow() override; |
70 gfx::Size GetPhysicalBackingSize() const override; | 72 gfx::Size GetPhysicalBackingSize() const override; |
71 base::string16 GetSelectedText() const override; | 73 base::string16 GetSelectedText() const override; |
72 | 74 |
73 // RenderWidgetHostViewBase implementation. | 75 // RenderWidgetHostViewBase implementation. |
74 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 76 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
75 const gfx::Rect& bounds) override; | 77 const gfx::Rect& bounds) override; |
76 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 78 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
77 void UpdateCursor(const WebCursor& cursor) override; | 79 void UpdateCursor(const WebCursor& cursor) override; |
78 void SetIsLoading(bool is_loading) override; | 80 void SetIsLoading(bool is_loading) override; |
| 81 void TextInputStateChanged( |
| 82 const ViewHostMsg_TextInputState_Params& params) override; |
79 void ImeCancelComposition() override; | 83 void ImeCancelComposition() override; |
80 #if defined(OS_MACOSX) || defined(USE_AURA) | 84 #if defined(OS_MACOSX) || defined(USE_AURA) |
81 void ImeCompositionRangeChanged( | 85 void ImeCompositionRangeChanged( |
82 const gfx::Range& range, | 86 const gfx::Range& range, |
83 const std::vector<gfx::Rect>& character_bounds) override; | 87 const std::vector<gfx::Rect>& character_bounds) override; |
84 #endif | 88 #endif |
85 void RenderProcessGone(base::TerminationStatus status, | 89 void RenderProcessGone(base::TerminationStatus status, |
86 int error_code) override; | 90 int error_code) override; |
87 void Destroy() override; | 91 void Destroy() override; |
88 void SetTooltipText(const base::string16& tooltip_text) override; | 92 void SetTooltipText(const base::string16& tooltip_text) override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // The platform view for this RenderWidgetHostView. | 155 // The platform view for this RenderWidgetHostView. |
152 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 156 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
153 // compositing, the rest are directly forwared to this |platform_view_|. | 157 // compositing, the rest are directly forwared to this |platform_view_|. |
154 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 158 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
155 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 159 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
156 }; | 160 }; |
157 | 161 |
158 } // namespace content | 162 } // namespace content |
159 | 163 |
160 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 164 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |