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 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/process.h" | 16 #include "base/process.h" |
17 #include "cc/layers/delegated_renderer_layer_client.h" | 17 #include "cc/layers/delegated_renderer_layer_client.h" |
18 #include "cc/layers/texture_layer_client.h" | 18 #include "cc/layers/texture_layer_client.h" |
| 19 #include "cc/output/begin_frame_args.h" |
19 #include "content/browser/accessibility/browser_accessibility_manager.h" | 20 #include "content/browser/accessibility/browser_accessibility_manager.h" |
20 #include "content/browser/renderer_host/ime_adapter_android.h" | 21 #include "content/browser/renderer_host/ime_adapter_android.h" |
21 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 22 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
22 #include "gpu/command_buffer/common/mailbox.h" | 23 #include "gpu/command_buffer/common/mailbox.h" |
23 #include "third_party/skia/include/core/SkColor.h" | 24 #include "third_party/skia/include/core/SkColor.h" |
24 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 25 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
25 #include "ui/gfx/size.h" | 26 #include "ui/gfx/size.h" |
26 #include "ui/gfx/vector2d_f.h" | 27 #include "ui/gfx/vector2d_f.h" |
27 | 28 |
28 struct ViewHostMsg_TextInputState_Params; | 29 struct ViewHostMsg_TextInputState_Params; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 virtual void DidCommitFrameData() OVERRIDE; | 186 virtual void DidCommitFrameData() OVERRIDE; |
186 | 187 |
187 // Non-virtual methods | 188 // Non-virtual methods |
188 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 189 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
189 SkColor GetCachedBackgroundColor() const; | 190 SkColor GetCachedBackgroundColor() const; |
190 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 191 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
191 void SendTouchEvent(const WebKit::WebTouchEvent& event); | 192 void SendTouchEvent(const WebKit::WebTouchEvent& event); |
192 void SendMouseEvent(const WebKit::WebMouseEvent& event); | 193 void SendMouseEvent(const WebKit::WebMouseEvent& event); |
193 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); | 194 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); |
194 void SendGestureEvent(const WebKit::WebGestureEvent& event); | 195 void SendGestureEvent(const WebKit::WebGestureEvent& event); |
195 void SendBeginFrame(base::TimeTicks frame_time); | 196 void SendBeginFrame(const cc::BeginFrameArgs& args); |
196 | 197 |
197 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | 198 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
198 void OnProcessImeBatchStateAck(bool is_begin); | 199 void OnProcessImeBatchStateAck(bool is_begin); |
199 void OnDidChangeBodyBackgroundColor(SkColor color); | 200 void OnDidChangeBodyBackgroundColor(SkColor color); |
200 void OnStartContentIntent(const GURL& content_url); | 201 void OnStartContentIntent(const GURL& content_url); |
201 void OnSetNeedsBeginFrame(bool enabled); | 202 void OnSetNeedsBeginFrame(bool enabled); |
202 | 203 |
203 int GetNativeImeAdapter(); | 204 int GetNativeImeAdapter(); |
204 | 205 |
205 void WasResized(); | 206 void WasResized(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // Used to render overscroll overlays. | 296 // Used to render overscroll overlays. |
296 bool overscroll_effect_enabled_; | 297 bool overscroll_effect_enabled_; |
297 scoped_ptr<OverscrollGlow> overscroll_effect_; | 298 scoped_ptr<OverscrollGlow> overscroll_effect_; |
298 | 299 |
299 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 300 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
300 }; | 301 }; |
301 | 302 |
302 } // namespace content | 303 } // namespace content |
303 | 304 |
304 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 305 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |