OLD | NEW |
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual bool HasFocus() const OVERRIDE; | 93 virtual bool HasFocus() const OVERRIDE; |
94 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 94 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
95 virtual void Show() OVERRIDE; | 95 virtual void Show() OVERRIDE; |
96 virtual void Hide() OVERRIDE; | 96 virtual void Hide() OVERRIDE; |
97 virtual bool IsShowing() OVERRIDE; | 97 virtual bool IsShowing() OVERRIDE; |
98 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 98 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
99 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 99 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
100 virtual float GetOverdrawBottomHeight() const OVERRIDE; | 100 virtual float GetOverdrawBottomHeight() const OVERRIDE; |
101 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 101 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
102 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 102 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
103 virtual void TextInputTypeChanged(ui::TextInputType type, | 103 virtual void TextInputStateChanged( |
104 ui::TextInputMode input_mode, | 104 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; |
105 bool can_compose_inline) OVERRIDE; | |
106 virtual void ImeCancelComposition() OVERRIDE; | 105 virtual void ImeCancelComposition() OVERRIDE; |
107 virtual void FocusedNodeChanged(bool is_editable_node) OVERRIDE; | 106 virtual void FocusedNodeChanged(bool is_editable_node) OVERRIDE; |
108 virtual void RenderProcessGone(base::TerminationStatus status, | 107 virtual void RenderProcessGone(base::TerminationStatus status, |
109 int error_code) OVERRIDE; | 108 int error_code) OVERRIDE; |
110 virtual void Destroy() OVERRIDE; | 109 virtual void Destroy() OVERRIDE; |
111 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; | 110 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; |
112 virtual void SelectionChanged(const base::string16& text, | 111 virtual void SelectionChanged(const base::string16& text, |
113 size_t offset, | 112 size_t offset, |
114 const gfx::Range& range) OVERRIDE; | 113 const gfx::Range& range) OVERRIDE; |
115 virtual void SelectionBoundsChanged( | 114 virtual void SelectionBoundsChanged( |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 185 |
187 // Non-virtual methods | 186 // Non-virtual methods |
188 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 187 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
189 SkColor GetCachedBackgroundColor() const; | 188 SkColor GetCachedBackgroundColor() const; |
190 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 189 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
191 void SendTouchEvent(const blink::WebTouchEvent& event); | 190 void SendTouchEvent(const blink::WebTouchEvent& event); |
192 void SendMouseEvent(const blink::WebMouseEvent& event); | 191 void SendMouseEvent(const blink::WebMouseEvent& event); |
193 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); | 192 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); |
194 void SendGestureEvent(const blink::WebGestureEvent& event); | 193 void SendGestureEvent(const blink::WebGestureEvent& event); |
195 | 194 |
196 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | |
197 void OnDidChangeBodyBackgroundColor(SkColor color); | 195 void OnDidChangeBodyBackgroundColor(SkColor color); |
198 void OnStartContentIntent(const GURL& content_url); | 196 void OnStartContentIntent(const GURL& content_url); |
199 void OnSetNeedsBeginFrame(bool enabled); | 197 void OnSetNeedsBeginFrame(bool enabled); |
200 void OnSmartClipDataExtracted(const base::string16& result); | 198 void OnSmartClipDataExtracted(const base::string16& result); |
201 | 199 |
202 bool OnTouchEvent(const ui::MotionEvent& event); | 200 bool OnTouchEvent(const ui::MotionEvent& event); |
203 void ResetGestureDetection(); | 201 void ResetGestureDetection(); |
204 void SetDoubleTapSupportEnabled(bool enabled); | 202 void SetDoubleTapSupportEnabled(bool enabled); |
205 void SetMultiTouchZoomSupportEnabled(bool enabled); | 203 void SetMultiTouchZoomSupportEnabled(bool enabled); |
206 | 204 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 }; | 349 }; |
352 | 350 |
353 scoped_ptr<LastFrameInfo> last_frame_info_; | 351 scoped_ptr<LastFrameInfo> last_frame_info_; |
354 | 352 |
355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 353 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
356 }; | 354 }; |
357 | 355 |
358 } // namespace content | 356 } // namespace content |
359 | 357 |
360 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 358 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |