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