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 <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.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; | 27 struct TextInputState; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class BrowserPluginGuest; | 30 class BrowserPluginGuest; |
31 class RenderWidgetHost; | 31 class RenderWidgetHost; |
32 class RenderWidgetHostImpl; | 32 class RenderWidgetHostImpl; |
33 struct NativeWebKeyboardEvent; | 33 struct NativeWebKeyboardEvent; |
34 | 34 |
35 // 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. |
36 // 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 |
37 // functionality in a diffent place and isn't platform specific. | 37 // functionality in a diffent place and isn't platform specific. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 gfx::Size GetPhysicalBackingSize() const override; | 72 gfx::Size GetPhysicalBackingSize() const override; |
73 base::string16 GetSelectedText() const override; | 73 base::string16 GetSelectedText() const override; |
74 | 74 |
75 // RenderWidgetHostViewBase implementation. | 75 // RenderWidgetHostViewBase implementation. |
76 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 76 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
77 const gfx::Rect& bounds) override; | 77 const gfx::Rect& bounds) override; |
78 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 78 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
79 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 79 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
80 void UpdateCursor(const WebCursor& cursor) override; | 80 void UpdateCursor(const WebCursor& cursor) override; |
81 void SetIsLoading(bool is_loading) override; | 81 void SetIsLoading(bool is_loading) override; |
82 void TextInputStateChanged( | 82 void TextInputStateChanged(const TextInputState& params) override; |
83 const ViewHostMsg_TextInputState_Params& params) override; | |
84 void ImeCancelComposition() override; | 83 void ImeCancelComposition() override; |
85 #if defined(OS_MACOSX) || defined(USE_AURA) | 84 #if defined(OS_MACOSX) || defined(USE_AURA) |
86 void ImeCompositionRangeChanged( | 85 void ImeCompositionRangeChanged( |
87 const gfx::Range& range, | 86 const gfx::Range& range, |
88 const std::vector<gfx::Rect>& character_bounds) override; | 87 const std::vector<gfx::Rect>& character_bounds) override; |
89 #endif | 88 #endif |
90 void RenderProcessGone(base::TerminationStatus status, | 89 void RenderProcessGone(base::TerminationStatus status, |
91 int error_code) override; | 90 int error_code) override; |
92 void Destroy() override; | 91 void Destroy() override; |
93 void SetTooltipText(const base::string16& tooltip_text) override; | 92 void SetTooltipText(const base::string16& tooltip_text) override; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // The platform view for this RenderWidgetHostView. | 166 // The platform view for this RenderWidgetHostView. |
168 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 167 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
169 // compositing, the rest are directly forwared to this |platform_view_|. | 168 // compositing, the rest are directly forwared to this |platform_view_|. |
170 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
171 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 170 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
172 }; | 171 }; |
173 | 172 |
174 } // namespace content | 173 } // namespace content |
175 | 174 |
176 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 175 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |