| 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; | |
| 28 | |
| 29 namespace content { | 27 namespace content { |
| 30 class BrowserPluginGuest; | 28 class BrowserPluginGuest; |
| 31 class RenderWidgetHost; | 29 class RenderWidgetHost; |
| 32 class RenderWidgetHostImpl; | 30 class RenderWidgetHostImpl; |
| 33 struct NativeWebKeyboardEvent; | 31 struct NativeWebKeyboardEvent; |
| 34 | 32 |
| 35 // See comments in render_widget_host_view.h about this class and its members. | 33 // 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 | 34 // This version is for the BrowserPlugin which handles a lot of the |
| 37 // functionality in a diffent place and isn't platform specific. | 35 // functionality in a diffent place and isn't platform specific. |
| 38 // The BrowserPlugin is currently a special case for out-of-process rendered | 36 // 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... |
| 71 gfx::Rect GetBoundsInRootWindow() override; | 69 gfx::Rect GetBoundsInRootWindow() override; |
| 72 gfx::Size GetPhysicalBackingSize() const override; | 70 gfx::Size GetPhysicalBackingSize() const override; |
| 73 base::string16 GetSelectedText() const override; | 71 base::string16 GetSelectedText() const override; |
| 74 | 72 |
| 75 // RenderWidgetHostViewBase implementation. | 73 // RenderWidgetHostViewBase implementation. |
| 76 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 74 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 77 const gfx::Rect& bounds) override; | 75 const gfx::Rect& bounds) override; |
| 78 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 76 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 79 void UpdateCursor(const WebCursor& cursor) override; | 77 void UpdateCursor(const WebCursor& cursor) override; |
| 80 void SetIsLoading(bool is_loading) override; | 78 void SetIsLoading(bool is_loading) override; |
| 81 void TextInputStateChanged( | |
| 82 const ViewHostMsg_TextInputState_Params& params) override; | |
| 83 void ImeCancelComposition() override; | 79 void ImeCancelComposition() override; |
| 84 #if defined(OS_MACOSX) || defined(USE_AURA) | 80 #if defined(OS_MACOSX) || defined(USE_AURA) |
| 85 void ImeCompositionRangeChanged( | 81 void ImeCompositionRangeChanged( |
| 86 const gfx::Range& range, | 82 const gfx::Range& range, |
| 87 const std::vector<gfx::Rect>& character_bounds) override; | 83 const std::vector<gfx::Rect>& character_bounds) override; |
| 88 #endif | 84 #endif |
| 89 void RenderProcessGone(base::TerminationStatus status, | 85 void RenderProcessGone(base::TerminationStatus status, |
| 90 int error_code) override; | 86 int error_code) override; |
| 91 void Destroy() override; | 87 void Destroy() override; |
| 92 void SetTooltipText(const base::string16& tooltip_text) override; | 88 void SetTooltipText(const base::string16& tooltip_text) override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // The platform view for this RenderWidgetHostView. | 156 // The platform view for this RenderWidgetHostView. |
| 161 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 157 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
| 162 // compositing, the rest are directly forwared to this |platform_view_|. | 158 // compositing, the rest are directly forwared to this |platform_view_|. |
| 163 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 159 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
| 164 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 160 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 165 }; | 161 }; |
| 166 | 162 |
| 167 } // namespace content | 163 } // namespace content |
| 168 | 164 |
| 169 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| OLD | NEW |