Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/resources/returned_resource.h" 9 #include "cc/resources/returned_resource.h"
10 #include "cc/surfaces/surface_factory_client.h" 10 #include "cc/surfaces/surface_factory_client.h"
11 #include "cc/surfaces/surface_id_allocator.h" 11 #include "cc/surfaces/surface_id_allocator.h"
12 #include "content/browser/compositor/image_transport_factory.h" 12 #include "content/browser/compositor/image_transport_factory.h"
13 #include "content/browser/renderer_host/render_widget_host_view_base.h" 13 #include "content/browser/renderer_host/render_widget_host_view_base.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/readback_types.h" 15 #include "content/public/browser/readback_types.h"
16 #include "ui/compositor/compositor.h" 16 #include "ui/compositor/compositor.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 19
20 namespace cc { 20 namespace cc {
21 class SurfaceFactory; 21 class SurfaceFactory;
22 enum class SurfaceDrawStatus; 22 enum class SurfaceDrawStatus;
23 } 23 }
24 24
25 struct ViewHostMsg_TextInputState_Params;
26
25 namespace content { 27 namespace content {
26 class CrossProcessFrameConnector; 28 class CrossProcessFrameConnector;
27 class RenderWidgetHost; 29 class RenderWidgetHost;
28 class RenderWidgetHostImpl; 30 class RenderWidgetHostImpl;
29 class RenderWidgetHostViewChildFrameTest; 31 class RenderWidgetHostViewChildFrameTest;
30 class RenderWidgetHostViewGuestSurfaceTest; 32 class RenderWidgetHostViewGuestSurfaceTest;
31 33
32 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost 34 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost
33 // associated with content being rendered in a separate process from 35 // associated with content being rendered in a separate process from
34 // content that is embedding it. This is not a platform-specific class; rather, 36 // content that is embedding it. This is not a platform-specific class; rather,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetBackgroundColor(SkColor color) override; 70 void SetBackgroundColor(SkColor color) override;
69 gfx::Size GetPhysicalBackingSize() const override; 71 gfx::Size GetPhysicalBackingSize() const override;
70 72
71 // RenderWidgetHostViewBase implementation. 73 // RenderWidgetHostViewBase implementation.
72 void InitAsPopup(RenderWidgetHostView* parent_host_view, 74 void InitAsPopup(RenderWidgetHostView* parent_host_view,
73 const gfx::Rect& bounds) override; 75 const gfx::Rect& bounds) override;
74 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 76 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
75 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; 77 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
76 void UpdateCursor(const WebCursor& cursor) override; 78 void UpdateCursor(const WebCursor& cursor) override;
77 void SetIsLoading(bool is_loading) override; 79 void SetIsLoading(bool is_loading) override;
78 void TextInputTypeChanged(ui::TextInputType type, 80 void TextInputStateChanged(
79 ui::TextInputMode input_mode, 81 const ViewHostMsg_TextInputState_Params& params) override;
80 bool can_compose_inline,
81 int flags) override;
82 void ImeCancelComposition() override; 82 void ImeCancelComposition() override;
83 void ImeCompositionRangeChanged( 83 void ImeCompositionRangeChanged(
84 const gfx::Range& range, 84 const gfx::Range& range,
85 const std::vector<gfx::Rect>& character_bounds) override; 85 const std::vector<gfx::Rect>& character_bounds) override;
86 void RenderProcessGone(base::TerminationStatus status, 86 void RenderProcessGone(base::TerminationStatus status,
87 int error_code) override; 87 int error_code) override;
88 void Destroy() override; 88 void Destroy() override;
89 void SetTooltipText(const base::string16& tooltip_text) override; 89 void SetTooltipText(const base::string16& tooltip_text) override;
90 void SelectionChanged(const base::string16& text, 90 void SelectionChanged(const base::string16& text,
91 size_t offset, 91 size_t offset,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 192
193 private: 193 private:
194 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 194 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
195 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 195 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
196 }; 196 };
197 197
198 } // namespace content 198 } // namespace content
199 199
200 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 200 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698