| 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 | 36 |
| 38 namespace content { | 37 namespace content { |
| 39 class CrossProcessFrameConnector; | 38 class CrossProcessFrameConnector; |
| 40 class RenderWidgetHost; | 39 class RenderWidgetHost; |
| 41 class RenderWidgetHostImpl; | 40 class RenderWidgetHostImpl; |
| 42 class RenderWidgetHostViewChildFrameTest; | 41 class RenderWidgetHostViewChildFrameTest; |
| 43 class RenderWidgetHostViewGuestSurfaceTest; | 42 class RenderWidgetHostViewGuestSurfaceTest; |
| 43 struct TextInputState; |
| 44 | 44 |
| 45 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost | 45 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost |
| 46 // associated with content being rendered in a separate process from | 46 // associated with content being rendered in a separate process from |
| 47 // content that is embedding it. This is not a platform-specific class; rather, | 47 // content that is embedding it. This is not a platform-specific class; rather, |
| 48 // the embedding renderer process implements the platform containing the | 48 // the embedding renderer process implements the platform containing the |
| 49 // widget, and the top-level frame's RenderWidgetHostView will ultimately | 49 // widget, and the top-level frame's RenderWidgetHostView will ultimately |
| 50 // manage all native widget interaction. | 50 // manage all native widget interaction. |
| 51 // | 51 // |
| 52 // See comments in render_widget_host_view.h about this class and its members. | 52 // See comments in render_widget_host_view.h about this class and its members. |
| 53 class CONTENT_EXPORT RenderWidgetHostViewChildFrame | 53 class CONTENT_EXPORT RenderWidgetHostViewChildFrame |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 90 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 91 void SetBackgroundColor(SkColor color) override; | 91 void SetBackgroundColor(SkColor color) override; |
| 92 gfx::Size GetPhysicalBackingSize() const override; | 92 gfx::Size GetPhysicalBackingSize() const override; |
| 93 | 93 |
| 94 // RenderWidgetHostViewBase implementation. | 94 // RenderWidgetHostViewBase implementation. |
| 95 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 95 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 96 const gfx::Rect& bounds) override; | 96 const gfx::Rect& bounds) override; |
| 97 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 97 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 98 void UpdateCursor(const WebCursor& cursor) override; | 98 void UpdateCursor(const WebCursor& cursor) override; |
| 99 void SetIsLoading(bool is_loading) override; | 99 void SetIsLoading(bool is_loading) override; |
| 100 void TextInputStateChanged( | 100 void TextInputStateChanged(const TextInputState& params) override; |
| 101 const ViewHostMsg_TextInputState_Params& params) override; | |
| 102 void ImeCancelComposition() override; | 101 void ImeCancelComposition() override; |
| 103 void ImeCompositionRangeChanged( | 102 void ImeCompositionRangeChanged( |
| 104 const gfx::Range& range, | 103 const gfx::Range& range, |
| 105 const std::vector<gfx::Rect>& character_bounds) override; | 104 const std::vector<gfx::Rect>& character_bounds) override; |
| 106 void RenderProcessGone(base::TerminationStatus status, | 105 void RenderProcessGone(base::TerminationStatus status, |
| 107 int error_code) override; | 106 int error_code) override; |
| 108 void Destroy() override; | 107 void Destroy() override; |
| 109 void SetTooltipText(const base::string16& tooltip_text) override; | 108 void SetTooltipText(const base::string16& tooltip_text) override; |
| 110 void SelectionChanged(const base::string16& text, | 109 void SelectionChanged(const base::string16& text, |
| 111 size_t offset, | 110 size_t offset, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // it convenient to swap() when processing the list. | 228 // it convenient to swap() when processing the list. |
| 230 FrameSwappedCallbackList frame_swapped_callbacks_; | 229 FrameSwappedCallbackList frame_swapped_callbacks_; |
| 231 | 230 |
| 232 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 231 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 233 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 232 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 234 }; | 233 }; |
| 235 | 234 |
| 236 } // namespace content | 235 } // namespace content |
| 237 | 236 |
| 238 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 237 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |