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" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 144 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
145 SkColor GetCachedBackgroundColor() const; | 145 SkColor GetCachedBackgroundColor() const; |
146 void SendKeyEvent(const NativeWebKeyboardEvent& event); | 146 void SendKeyEvent(const NativeWebKeyboardEvent& event); |
147 void SendTouchEvent(const WebKit::WebTouchEvent& event); | 147 void SendTouchEvent(const WebKit::WebTouchEvent& event); |
148 void SendMouseEvent(const WebKit::WebMouseEvent& event); | 148 void SendMouseEvent(const WebKit::WebMouseEvent& event); |
149 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); | 149 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); |
150 void SendGestureEvent(const WebKit::WebGestureEvent& event); | 150 void SendGestureEvent(const WebKit::WebGestureEvent& event); |
151 | 151 |
152 int GetNativeImeAdapter(); | 152 int GetNativeImeAdapter(); |
153 | 153 |
154 WebKit::WebGLId GetScaledContentTexture(const gfx::Size& size); | 154 WebKit::WebGLId GetScaledContentTexture(const gfx::Size& size, |
| 155 const gfx::Rect& src_rect); |
155 bool PopulateBitmapWithContents(jobject jbitmap); | 156 bool PopulateBitmapWithContents(jobject jbitmap); |
156 | 157 |
157 bool HasValidFrame() const; | 158 bool HasValidFrame() const; |
158 | 159 |
159 // Select all text between the given coordinates. | 160 // Select all text between the given coordinates. |
160 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 161 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
161 | 162 |
162 private: | 163 private: |
163 // The model object. | 164 // The model object. |
164 RenderWidgetHostImpl* host_; | 165 RenderWidgetHostImpl* host_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 200 |
200 // The identifier of the previously received frame | 201 // The identifier of the previously received frame |
201 uint64 current_buffer_id_; | 202 uint64 current_buffer_id_; |
202 | 203 |
203 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 204 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
204 }; | 205 }; |
205 | 206 |
206 } // namespace content | 207 } // namespace content |
207 | 208 |
208 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 209 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |