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_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "content/public/browser/readback_types.h" | 24 #include "content/public/browser/readback_types.h" |
25 #include "ui/compositor/compositor.h" | 25 #include "ui/compositor/compositor.h" |
26 #include "ui/gfx/geometry/rect.h" | 26 #include "ui/gfx/geometry/rect.h" |
27 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
28 | 28 |
29 namespace cc { | 29 namespace cc { |
30 class SurfaceFactory; | 30 class SurfaceFactory; |
31 enum class SurfaceDrawStatus; | 31 enum class SurfaceDrawStatus; |
32 } | 32 } |
33 | 33 |
34 struct ViewHostMsg_TextInputState_Params; | |
35 | |
36 namespace content { | 34 namespace content { |
37 class CrossProcessFrameConnector; | 35 class CrossProcessFrameConnector; |
38 class RenderWidgetHost; | 36 class RenderWidgetHost; |
39 class RenderWidgetHostImpl; | 37 class RenderWidgetHostImpl; |
40 class RenderWidgetHostViewChildFrameTest; | 38 class RenderWidgetHostViewChildFrameTest; |
41 class RenderWidgetHostViewGuestSurfaceTest; | 39 class RenderWidgetHostViewGuestSurfaceTest; |
42 | 40 |
43 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost | 41 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost |
44 // associated with content being rendered in a separate process from | 42 // associated with content being rendered in a separate process from |
45 // content that is embedding it. This is not a platform-specific class; rather, | 43 // content that is embedding it. This is not a platform-specific class; rather, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void SetBackgroundColor(SkColor color) override; | 86 void SetBackgroundColor(SkColor color) override; |
89 gfx::Size GetPhysicalBackingSize() const override; | 87 gfx::Size GetPhysicalBackingSize() const override; |
90 | 88 |
91 // RenderWidgetHostViewBase implementation. | 89 // RenderWidgetHostViewBase implementation. |
92 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 90 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
93 const gfx::Rect& bounds) override; | 91 const gfx::Rect& bounds) override; |
94 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 92 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
95 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 93 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
96 void UpdateCursor(const WebCursor& cursor) override; | 94 void UpdateCursor(const WebCursor& cursor) override; |
97 void SetIsLoading(bool is_loading) override; | 95 void SetIsLoading(bool is_loading) override; |
98 void TextInputStateChanged( | 96 void UpdateTextInputState() override; |
99 const ViewHostMsg_TextInputState_Params& params) override; | |
100 void ImeCancelComposition() override; | 97 void ImeCancelComposition() override; |
101 void ImeCompositionRangeChanged( | 98 void ImeCompositionRangeChanged( |
102 const gfx::Range& range, | 99 const gfx::Range& range, |
103 const std::vector<gfx::Rect>& character_bounds) override; | 100 const std::vector<gfx::Rect>& character_bounds) override; |
104 void RenderProcessGone(base::TerminationStatus status, | 101 void RenderProcessGone(base::TerminationStatus status, |
105 int error_code) override; | 102 int error_code) override; |
106 void Destroy() override; | 103 void Destroy() override; |
107 void SetTooltipText(const base::string16& tooltip_text) override; | 104 void SetTooltipText(const base::string16& tooltip_text) override; |
108 void SelectionChanged(const base::string16& text, | 105 void SelectionChanged(const base::string16& text, |
109 size_t offset, | 106 size_t offset, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // it convenient to swap() when processing the list. | 222 // it convenient to swap() when processing the list. |
226 FrameSwappedCallbackList frame_swapped_callbacks_; | 223 FrameSwappedCallbackList frame_swapped_callbacks_; |
227 | 224 |
228 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 225 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
229 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 226 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
230 }; | 227 }; |
231 | 228 |
232 } // namespace content | 229 } // namespace content |
233 | 230 |
234 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 231 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |