| 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 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "content/browser/renderer_host/ime_adapter_android.h" | 14 #include "content/browser/renderer_host/ime_adapter_android.h" |
| 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 19 #include "ui/gfx/vector2d_f.h" |
| 19 | 20 |
| 20 struct ViewHostMsg_TextInputState_Params; | 21 struct ViewHostMsg_TextInputState_Params; |
| 21 | 22 |
| 22 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 23 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 24 | 25 |
| 25 namespace cc { | 26 namespace cc { |
| 26 class Layer; | 27 class Layer; |
| 27 class TextureLayer; | 28 class TextureLayer; |
| 28 } | 29 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void UnlockMouse() OVERRIDE; | 130 virtual void UnlockMouse() OVERRIDE; |
| 130 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; | 131 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; |
| 131 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; | 132 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; |
| 132 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE; | 133 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE; |
| 133 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, | 134 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, |
| 134 float maximum_scale) OVERRIDE; | 135 float maximum_scale) OVERRIDE; |
| 135 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, | 136 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, |
| 136 float page_scale_factor, | 137 float page_scale_factor, |
| 137 float min_page_scale_factor, | 138 float min_page_scale_factor, |
| 138 float max_page_scale_factor, | 139 float max_page_scale_factor, |
| 139 const gfx::Size& content_size) OVERRIDE; | 140 const gfx::Size& content_size, |
| 141 const gfx::Vector2dF& controls_offset, |
| 142 const gfx::Vector2dF& content_offset) OVERRIDE; |
| 140 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 143 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
| 141 const SkBitmap& zoomed_bitmap) OVERRIDE; | 144 const SkBitmap& zoomed_bitmap) OVERRIDE; |
| 142 | 145 |
| 143 // Non-virtual methods | 146 // Non-virtual methods |
| 144 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 147 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
| 145 SkColor GetCachedBackgroundColor() const; | 148 SkColor GetCachedBackgroundColor() const; |
| 146 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 149 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
| 147 void SendTouchEvent(const WebKit::WebTouchEvent& event); | 150 void SendTouchEvent(const WebKit::WebTouchEvent& event); |
| 148 void SendMouseEvent(const WebKit::WebMouseEvent& event); | 151 void SendMouseEvent(const WebKit::WebMouseEvent& event); |
| 149 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); | 152 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 202 |
| 200 // The identifier of the previously received frame | 203 // The identifier of the previously received frame |
| 201 uint64 current_buffer_id_; | 204 uint64 current_buffer_id_; |
| 202 | 205 |
| 203 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 206 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 204 }; | 207 }; |
| 205 | 208 |
| 206 } // namespace content | 209 } // namespace content |
| 207 | 210 |
| 208 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 211 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |