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

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

Issue 326403002: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed. Created 6 years, 6 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 "content/browser/renderer_host/render_widget_host_view_base.h" 9 #include "content/browser/renderer_host/render_widget_host_view_base.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 13
14 struct ViewHostMsg_TextInputState_Params;
15
14 namespace content { 16 namespace content {
15 class CrossProcessFrameConnector; 17 class CrossProcessFrameConnector;
16 class RenderWidgetHost; 18 class RenderWidgetHost;
17 class RenderWidgetHostImpl; 19 class RenderWidgetHostImpl;
18 20
19 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost 21 // RenderWidgetHostViewChildFrame implements the view for a RenderWidgetHost
20 // associated with content being rendered in a separate process from 22 // associated with content being rendered in a separate process from
21 // content that is embedding it. This is not a platform-specific class; rather, 23 // content that is embedding it. This is not a platform-specific class; rather,
22 // the embedding renderer process implements the platform containing the 24 // the embedding renderer process implements the platform containing the
23 // widget, and the top-level frame's RenderWidgetHostView will ultimately 25 // widget, and the top-level frame's RenderWidgetHostView will ultimately
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const gfx::Rect& pos) OVERRIDE; 60 const gfx::Rect& pos) OVERRIDE;
59 virtual void InitAsFullscreen( 61 virtual void InitAsFullscreen(
60 RenderWidgetHostView* reference_host_view) OVERRIDE; 62 RenderWidgetHostView* reference_host_view) OVERRIDE;
61 virtual void WasShown() OVERRIDE; 63 virtual void WasShown() OVERRIDE;
62 virtual void WasHidden() OVERRIDE; 64 virtual void WasHidden() OVERRIDE;
63 virtual void MovePluginWindows( 65 virtual void MovePluginWindows(
64 const std::vector<WebPluginGeometry>& moves) OVERRIDE; 66 const std::vector<WebPluginGeometry>& moves) OVERRIDE;
65 virtual void Blur() OVERRIDE; 67 virtual void Blur() OVERRIDE;
66 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 68 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
67 virtual void SetIsLoading(bool is_loading) OVERRIDE; 69 virtual void SetIsLoading(bool is_loading) OVERRIDE;
68 virtual void TextInputTypeChanged(ui::TextInputType type, 70 virtual void TextInputStateChanged(
69 ui::TextInputMode input_mode, 71 const ViewHostMsg_TextInputState_Params& params) OVERRIDE;
70 bool can_compose_inline) OVERRIDE;
71 virtual void ImeCancelComposition() OVERRIDE; 72 virtual void ImeCancelComposition() OVERRIDE;
72 #if defined(OS_MACOSX) || defined(USE_AURA) 73 #if defined(OS_MACOSX) || defined(USE_AURA)
73 virtual void ImeCompositionRangeChanged( 74 virtual void ImeCompositionRangeChanged(
74 const gfx::Range& range, 75 const gfx::Range& range,
75 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; 76 const std::vector<gfx::Rect>& character_bounds) OVERRIDE;
76 #endif 77 #endif
77 virtual void RenderProcessGone(base::TerminationStatus status, 78 virtual void RenderProcessGone(base::TerminationStatus status,
78 int error_code) OVERRIDE; 79 int error_code) OVERRIDE;
79 virtual void Destroy() OVERRIDE; 80 virtual void Destroy() OVERRIDE;
80 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; 81 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // sent through it are routed to the embedding renderer process. 165 // sent through it are routed to the embedding renderer process.
165 CrossProcessFrameConnector* frame_connector_; 166 CrossProcessFrameConnector* frame_connector_;
166 167
167 private: 168 private:
168 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 169 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
169 }; 170 };
170 171
171 } // namespace content 172 } // namespace content
172 173
173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 174 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698