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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.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_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/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 #include "ui/gfx/vector2d_f.h" 19 #include "ui/gfx/vector2d_f.h"
20 20
21 struct ViewHostMsg_TextInputState_Params;
22
21 namespace content { 23 namespace content {
22 class RenderWidgetHost; 24 class RenderWidgetHost;
23 class RenderWidgetHostImpl; 25 class RenderWidgetHostImpl;
24 class BrowserPluginGuest; 26 class BrowserPluginGuest;
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 30 matching lines...) Expand all
61 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 63 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
62 const gfx::Rect& pos) OVERRIDE; 64 const gfx::Rect& pos) OVERRIDE;
63 virtual void InitAsFullscreen( 65 virtual void InitAsFullscreen(
64 RenderWidgetHostView* reference_host_view) OVERRIDE; 66 RenderWidgetHostView* reference_host_view) OVERRIDE;
65 virtual void WasShown() OVERRIDE; 67 virtual void WasShown() OVERRIDE;
66 virtual void WasHidden() OVERRIDE; 68 virtual void WasHidden() OVERRIDE;
67 virtual void MovePluginWindows( 69 virtual void MovePluginWindows(
68 const std::vector<WebPluginGeometry>& moves) OVERRIDE; 70 const std::vector<WebPluginGeometry>& moves) OVERRIDE;
69 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 71 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
70 virtual void SetIsLoading(bool is_loading) OVERRIDE; 72 virtual void SetIsLoading(bool is_loading) OVERRIDE;
71 virtual void TextInputTypeChanged(ui::TextInputType type, 73 virtual void TextInputStateChanged(
72 ui::TextInputMode input_mode, 74 const ViewHostMsg_TextInputState_Params& params) OVERRIDE;
73 bool can_compose_inline) OVERRIDE;
74 virtual void ImeCancelComposition() OVERRIDE; 75 virtual void ImeCancelComposition() OVERRIDE;
75 #if defined(OS_MACOSX) || defined(USE_AURA) 76 #if defined(OS_MACOSX) || defined(USE_AURA)
76 virtual void ImeCompositionRangeChanged( 77 virtual void ImeCompositionRangeChanged(
77 const gfx::Range& range, 78 const gfx::Range& range,
78 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; 79 const std::vector<gfx::Rect>& character_bounds) OVERRIDE;
79 #endif 80 #endif
80 virtual void RenderProcessGone(base::TerminationStatus status, 81 virtual void RenderProcessGone(base::TerminationStatus status,
81 int error_code) OVERRIDE; 82 int error_code) OVERRIDE;
82 virtual void Destroy() OVERRIDE; 83 virtual void Destroy() OVERRIDE;
83 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; 84 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 RenderWidgetHostViewBase* platform_view_; 173 RenderWidgetHostViewBase* platform_view_;
173 #if defined(USE_AURA) 174 #if defined(USE_AURA)
174 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 175 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
175 #endif 176 #endif
176 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 177 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
177 }; 178 };
178 179
179 } // namespace content 180 } // namespace content
180 181
181 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 182 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698