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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.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, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool IsSurfaceAvailableForCopy() const override; 98 bool IsSurfaceAvailableForCopy() const override;
99 void Show() override; 99 void Show() override;
100 void Hide() override; 100 void Hide() override;
101 bool IsShowing() override; 101 bool IsShowing() override;
102 gfx::Rect GetViewBounds() const override; 102 gfx::Rect GetViewBounds() const override;
103 gfx::Size GetPhysicalBackingSize() const override; 103 gfx::Size GetPhysicalBackingSize() const override;
104 bool DoTopControlsShrinkBlinkSize() const override; 104 bool DoTopControlsShrinkBlinkSize() const override;
105 float GetTopControlsHeight() const override; 105 float GetTopControlsHeight() const override;
106 void UpdateCursor(const WebCursor& cursor) override; 106 void UpdateCursor(const WebCursor& cursor) override;
107 void SetIsLoading(bool is_loading) override; 107 void SetIsLoading(bool is_loading) override;
108 void TextInputTypeChanged(ui::TextInputType type, 108 void TextInputStateChanged(
109 ui::TextInputMode input_mode, 109 const ViewHostMsg_TextInputState_Params& params) override;
110 bool can_compose_inline,
111 int flags) override;
112 void ImeCancelComposition() override; 110 void ImeCancelComposition() override;
113 void ImeCompositionRangeChanged( 111 void ImeCompositionRangeChanged(
114 const gfx::Range& range, 112 const gfx::Range& range,
115 const std::vector<gfx::Rect>& character_bounds) override; 113 const std::vector<gfx::Rect>& character_bounds) override;
116 void FocusedNodeChanged(bool is_editable_node) override; 114 void FocusedNodeChanged(bool is_editable_node) override;
117 void RenderProcessGone(base::TerminationStatus status, 115 void RenderProcessGone(base::TerminationStatus status,
118 int error_code) override; 116 int error_code) override;
119 void Destroy() override; 117 void Destroy() override;
120 void SetTooltipText(const base::string16& tooltip_text) override; 118 void SetTooltipText(const base::string16& tooltip_text) override;
121 void SelectionChanged(const base::string16& text, 119 void SelectionChanged(const base::string16& text,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override; 203 scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override;
206 204
207 // Non-virtual methods 205 // Non-virtual methods
208 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 206 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
209 SkColor GetCachedBackgroundColor() const; 207 SkColor GetCachedBackgroundColor() const;
210 void SendKeyEvent(const NativeWebKeyboardEvent& event); 208 void SendKeyEvent(const NativeWebKeyboardEvent& event);
211 void SendMouseEvent(const blink::WebMouseEvent& event); 209 void SendMouseEvent(const blink::WebMouseEvent& event);
212 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); 210 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
213 void SendGestureEvent(const blink::WebGestureEvent& event); 211 void SendGestureEvent(const blink::WebGestureEvent& event);
214 212
215 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params);
216 void OnDidChangeBodyBackgroundColor(SkColor color); 213 void OnDidChangeBodyBackgroundColor(SkColor color);
217 void OnStartContentIntent(const GURL& content_url); 214 void OnStartContentIntent(const GURL& content_url);
218 void OnSetNeedsBeginFrames(bool enabled); 215 void OnSetNeedsBeginFrames(bool enabled);
219 void OnSmartClipDataExtracted(const base::string16& text, 216 void OnSmartClipDataExtracted(const base::string16& text,
220 const base::string16& html, 217 const base::string16& html,
221 const gfx::Rect rect); 218 const gfx::Rect rect);
222 219
223 bool OnTouchEvent(const ui::MotionEvent& event); 220 bool OnTouchEvent(const ui::MotionEvent& event);
224 bool OnTouchHandleEvent(const ui::MotionEvent& event); 221 bool OnTouchHandleEvent(const ui::MotionEvent& event);
225 void ResetGestureDetection(); 222 void ResetGestureDetection();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 gfx::Vector2dF last_scroll_offset_; 412 gfx::Vector2dF last_scroll_offset_;
416 413
417 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 414 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
418 415
419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 416 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
420 }; 417 };
421 418
422 } // namespace content 419 } // namespace content
423 420
424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698