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" |
| 20 #include "cc/output/output_surface_client.h" |
19 #include "content/browser/renderer_host/ime_adapter_android.h" | 21 #include "content/browser/renderer_host/ime_adapter_android.h" |
20 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 22 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
21 #include "gpu/command_buffer/common/mailbox.h" | 23 #include "gpu/command_buffer/common/mailbox.h" |
22 #include "third_party/skia/include/core/SkColor.h" | 24 #include "third_party/skia/include/core/SkColor.h" |
23 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 25 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
24 #include "ui/gfx/size.h" | 26 #include "ui/gfx/size.h" |
25 #include "ui/gfx/vector2d_f.h" | 27 #include "ui/gfx/vector2d_f.h" |
26 | 28 |
27 struct ViewHostMsg_TextInputState_Params; | 29 struct ViewHostMsg_TextInputState_Params; |
28 | 30 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 virtual void DidCommitFrameData() OVERRIDE; | 173 virtual void DidCommitFrameData() OVERRIDE; |
172 | 174 |
173 // Non-virtual methods | 175 // Non-virtual methods |
174 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 176 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
175 SkColor GetCachedBackgroundColor() const; | 177 SkColor GetCachedBackgroundColor() const; |
176 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 178 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
177 void SendTouchEvent(const WebKit::WebTouchEvent& event); | 179 void SendTouchEvent(const WebKit::WebTouchEvent& event); |
178 void SendMouseEvent(const WebKit::WebMouseEvent& event); | 180 void SendMouseEvent(const WebKit::WebMouseEvent& event); |
179 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); | 181 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); |
180 void SendGestureEvent(const WebKit::WebGestureEvent& event); | 182 void SendGestureEvent(const WebKit::WebGestureEvent& event); |
181 void SendBeginFrame(base::TimeTicks frame_time); | 183 void SendBeginFrame(cc::BeginFrameArgs args); |
182 | 184 |
183 void OnProcessImeBatchStateAck(bool is_begin); | 185 void OnProcessImeBatchStateAck(bool is_begin); |
184 void OnDidChangeBodyBackgroundColor(SkColor color); | 186 void OnDidChangeBodyBackgroundColor(SkColor color); |
185 void OnStartContentIntent(const GURL& content_url); | 187 void OnStartContentIntent(const GURL& content_url); |
186 void OnSetNeedsBeginFrame(bool enabled); | 188 void OnSetNeedsBeginFrame(bool enabled); |
187 | 189 |
188 int GetNativeImeAdapter(); | 190 int GetNativeImeAdapter(); |
189 | 191 |
190 void WasResized(); | 192 void WasResized(); |
191 | 193 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // Used to render overscroll overlays. | 282 // Used to render overscroll overlays. |
281 bool overscroll_effect_enabled_; | 283 bool overscroll_effect_enabled_; |
282 scoped_ptr<OverscrollGlow> overscroll_effect_; | 284 scoped_ptr<OverscrollGlow> overscroll_effect_; |
283 | 285 |
284 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 286 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
285 }; | 287 }; |
286 | 288 |
287 } // namespace content | 289 } // namespace content |
288 | 290 |
289 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 291 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |