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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.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_GUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 11 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/cursors/webcursor.h" 13 #include "content/common/cursors/webcursor.h"
14 #include "ui/events/event.h" 14 #include "ui/events/event.h"
15 #include "ui/events/gestures/gesture_recognizer.h" 15 #include "ui/events/gestures/gesture_recognizer.h"
16 #include "ui/events/gestures/gesture_types.h" 16 #include "ui/events/gestures/gesture_types.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/geometry/vector2d_f.h" 18 #include "ui/gfx/geometry/vector2d_f.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 20
21 struct ViewHostMsg_TextInputState_Params;
22
21 namespace content { 23 namespace content {
22 class BrowserPluginGuest; 24 class BrowserPluginGuest;
23 class RenderWidgetHost; 25 class RenderWidgetHost;
24 class RenderWidgetHostImpl; 26 class RenderWidgetHostImpl;
25 struct NativeWebKeyboardEvent; 27 struct NativeWebKeyboardEvent;
26 28
27 // See comments in render_widget_host_view.h about this class and its members. 29 // See comments in render_widget_host_view.h about this class and its members.
28 // This version is for the BrowserPlugin which handles a lot of the 30 // This version is for the BrowserPlugin which handles a lot of the
29 // functionality in a diffent place and isn't platform specific. 31 // functionality in a diffent place and isn't platform specific.
30 // The BrowserPlugin is currently a special case for out-of-process rendered 32 // The BrowserPlugin is currently a special case for out-of-process rendered
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 gfx::Size GetPhysicalBackingSize() const override; 67 gfx::Size GetPhysicalBackingSize() const override;
66 base::string16 GetSelectedText() const override; 68 base::string16 GetSelectedText() const override;
67 69
68 // RenderWidgetHostViewBase implementation. 70 // RenderWidgetHostViewBase implementation.
69 void InitAsPopup(RenderWidgetHostView* parent_host_view, 71 void InitAsPopup(RenderWidgetHostView* parent_host_view,
70 const gfx::Rect& bounds) override; 72 const gfx::Rect& bounds) override;
71 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 73 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
72 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; 74 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
73 void UpdateCursor(const WebCursor& cursor) override; 75 void UpdateCursor(const WebCursor& cursor) override;
74 void SetIsLoading(bool is_loading) override; 76 void SetIsLoading(bool is_loading) override;
75 void TextInputTypeChanged(ui::TextInputType type, 77 void TextInputStateChanged(
76 ui::TextInputMode input_mode, 78 const ViewHostMsg_TextInputState_Params& params) override;
77 bool can_compose_inline,
78 int flags) override;
79 void ImeCancelComposition() override; 79 void ImeCancelComposition() override;
80 #if defined(OS_MACOSX) || defined(USE_AURA) 80 #if defined(OS_MACOSX) || defined(USE_AURA)
81 void ImeCompositionRangeChanged( 81 void ImeCompositionRangeChanged(
82 const gfx::Range& range, 82 const gfx::Range& range,
83 const std::vector<gfx::Rect>& character_bounds) override; 83 const std::vector<gfx::Rect>& character_bounds) override;
84 #endif 84 #endif
85 void RenderProcessGone(base::TerminationStatus status, 85 void RenderProcessGone(base::TerminationStatus status,
86 int error_code) override; 86 int error_code) override;
87 void Destroy() override; 87 void Destroy() override;
88 void SetTooltipText(const base::string16& tooltip_text) override; 88 void SetTooltipText(const base::string16& tooltip_text) override;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; 169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_;
170 #if defined(USE_AURA) 170 #if defined(USE_AURA)
171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
172 #endif 172 #endif
173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
174 }; 174 };
175 175
176 } // namespace content 176 } // namespace content
177 177
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698