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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 // -------------------------------------------------------------------------- | 326 // -------------------------------------------------------------------------- |
327 // Other private methods and data | 327 // Other private methods and data |
328 // -------------------------------------------------------------------------- | 328 // -------------------------------------------------------------------------- |
329 | 329 |
330 void InitWebContents(); | 330 void InitWebContents(); |
331 | 331 |
332 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 332 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
333 | 333 |
334 float GetTouchPaddingDip(); | 334 float GetTouchPaddingDip(); |
335 | 335 |
336 WebKit::WebGestureEvent MakeGestureEvent( | 336 blink::WebGestureEvent MakeGestureEvent( |
337 WebKit::WebInputEvent::Type type, long time_ms, float x, float y) const; | 337 blink::WebInputEvent::Type type, long time_ms, float x, float y) const; |
338 | 338 |
339 void SendBeginFrame(base::TimeTicks frame_time); | 339 void SendBeginFrame(base::TimeTicks frame_time); |
340 | 340 |
341 gfx::Size GetViewportSizePix() const; | 341 gfx::Size GetViewportSizePix() const; |
342 gfx::Size GetViewportSizeOffsetPix() const; | 342 gfx::Size GetViewportSizeOffsetPix() const; |
343 | 343 |
344 void DeleteScaledSnapshotTexture(); | 344 void DeleteScaledSnapshotTexture(); |
345 | 345 |
346 void SendGestureEvent(const WebKit::WebGestureEvent& event); | 346 void SendGestureEvent(const blink::WebGestureEvent& event); |
347 | 347 |
348 // Checks if there there is a corresponding renderer process and updates | 348 // Checks if there there is a corresponding renderer process and updates |
349 // |tab_crashed_| accordingly. | 349 // |tab_crashed_| accordingly. |
350 void UpdateTabCrashedFlag(); | 350 void UpdateTabCrashedFlag(); |
351 | 351 |
352 // Update focus state of the RenderWidgetHostView. | 352 // Update focus state of the RenderWidgetHostView. |
353 void SetFocusInternal(bool focused); | 353 void SetFocusInternal(bool focused); |
354 | 354 |
355 // Send device_orientation_ to renderer. | 355 // Send device_orientation_ to renderer. |
356 void SendOrientationChangeEventInternal(); | 356 void SendOrientationChangeEventInternal(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 int device_orientation_; | 389 int device_orientation_; |
390 | 390 |
391 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 391 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
392 }; | 392 }; |
393 | 393 |
394 bool RegisterContentViewCore(JNIEnv* env); | 394 bool RegisterContentViewCore(JNIEnv* env); |
395 | 395 |
396 } // namespace content | 396 } // namespace content |
397 | 397 |
398 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 398 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |