OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 void InitWebContents(); | 319 void InitWebContents(); |
320 | 320 |
321 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 321 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
322 | 322 |
323 blink::WebGestureEvent MakeGestureEvent( | 323 blink::WebGestureEvent MakeGestureEvent( |
324 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; | 324 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; |
325 | 325 |
326 gfx::Size GetViewportSizePix() const; | 326 gfx::Size GetViewportSizePix() const; |
327 gfx::Size GetViewportSizeOffsetPix() const; | 327 gfx::Size GetViewportSizeOffsetPix() const; |
328 | 328 |
329 void DeleteScaledSnapshotTexture(); | |
330 | |
331 bool OnMotionEvent(const ui::MotionEvent& event); | |
332 void SendGestureEvent(const blink::WebGestureEvent& event); | 329 void SendGestureEvent(const blink::WebGestureEvent& event); |
333 | 330 |
334 // Update focus state of the RenderWidgetHostView. | 331 // Update focus state of the RenderWidgetHostView. |
335 void SetFocusInternal(bool focused); | 332 void SetFocusInternal(bool focused); |
336 | 333 |
337 // Send device_orientation_ to renderer. | 334 // Send device_orientation_ to renderer. |
338 void SendOrientationChangeEventInternal(); | 335 void SendOrientationChangeEventInternal(); |
339 | 336 |
340 float dpi_scale() const { return dpi_scale_; } | 337 float dpi_scale() const { return dpi_scale_; } |
341 | 338 |
(...skipping 28 matching lines...) Expand all Loading... |
370 java_bridge_dispatcher_host_; | 367 java_bridge_dispatcher_host_; |
371 | 368 |
372 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 369 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
373 }; | 370 }; |
374 | 371 |
375 bool RegisterContentViewCore(JNIEnv* env); | 372 bool RegisterContentViewCore(JNIEnv* env); |
376 | 373 |
377 } // namespace content | 374 } // namespace content |
378 | 375 |
379 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 376 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |