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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 virtual void DidCommitFrameData() OVERRIDE; | 170 virtual void DidCommitFrameData() OVERRIDE; |
171 | 171 |
172 // Non-virtual methods | 172 // Non-virtual methods |
173 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 173 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
174 SkColor GetCachedBackgroundColor() const; | 174 SkColor GetCachedBackgroundColor() const; |
175 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 175 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
176 void SendTouchEvent(const WebKit::WebTouchEvent& event); | 176 void SendTouchEvent(const WebKit::WebTouchEvent& event); |
177 void SendMouseEvent(const WebKit::WebMouseEvent& event); | 177 void SendMouseEvent(const WebKit::WebMouseEvent& event); |
178 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); | 178 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); |
179 void SendGestureEvent(const WebKit::WebGestureEvent& event); | 179 void SendGestureEvent(const WebKit::WebGestureEvent& event); |
180 void SendVSync(base::TimeTicks frame_time); | 180 void SendBeginFrame(base::TimeTicks frame_time); |
181 | 181 |
182 void OnProcessImeBatchStateAck(bool is_begin); | 182 void OnProcessImeBatchStateAck(bool is_begin); |
183 void OnDidChangeBodyBackgroundColor(SkColor color); | 183 void OnDidChangeBodyBackgroundColor(SkColor color); |
184 void OnStartContentIntent(const GURL& content_url); | 184 void OnStartContentIntent(const GURL& content_url); |
185 void OnSetVSyncNotificationEnabled(bool enabled); | 185 void OnSetNeedsBeginFrame(bool enabled); |
186 | 186 |
187 int GetNativeImeAdapter(); | 187 int GetNativeImeAdapter(); |
188 | 188 |
189 void WasResized(); | 189 void WasResized(); |
190 | 190 |
191 WebKit::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size); | 191 WebKit::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size); |
192 bool PopulateBitmapWithContents(jobject jbitmap); | 192 bool PopulateBitmapWithContents(jobject jbitmap); |
193 | 193 |
194 bool HasValidFrame() const; | 194 bool HasValidFrame() const; |
195 | 195 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 275 |
276 // Used to render overscroll overlays. | 276 // Used to render overscroll overlays. |
277 scoped_ptr<OverscrollGlow> overscroll_effect_; | 277 scoped_ptr<OverscrollGlow> overscroll_effect_; |
278 | 278 |
279 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 279 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
280 }; | 280 }; |
281 | 281 |
282 } // namespace content | 282 } // namespace content |
283 | 283 |
284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |