| 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_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_helper.h" | 11 #include "base/android/jni_helper.h" |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/process.h" | 16 #include "base/process.h" |
| 16 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 17 #include "content/browser/web_contents/web_contents_impl.h" | 18 #include "content/browser/web_contents/web_contents_impl.h" |
| 18 #include "content/public/browser/android/content_view_core.h" | 19 #include "content/public/browser/android/content_view_core.h" |
| 19 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir); | 238 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir); |
| 238 | 239 |
| 239 void StartContentIntent(const GURL& content_url); | 240 void StartContentIntent(const GURL& content_url); |
| 240 | 241 |
| 241 // Shows the disambiguation popup | 242 // Shows the disambiguation popup |
| 242 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 243 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
| 243 // |zoomed_bitmap| --> magnified image of potential touch targets | 244 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 244 void ShowDisambiguationPopup( | 245 void ShowDisambiguationPopup( |
| 245 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 246 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
| 246 | 247 |
| 248 // Creates a java-side smooth scroller. Used by |
| 249 // chrome.gpuBenchmarking.smoothScrollBy. |
| 250 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller( |
| 251 bool scroll_down, int mouse_event_x, int mouse_event_y); |
| 252 |
| 247 // -------------------------------------------------------------------------- | 253 // -------------------------------------------------------------------------- |
| 248 // Methods called from native code | 254 // Methods called from native code |
| 249 // -------------------------------------------------------------------------- | 255 // -------------------------------------------------------------------------- |
| 250 | 256 |
| 251 gfx::Rect GetBounds() const; | 257 gfx::Rect GetBounds() const; |
| 252 | 258 |
| 253 void AttachLayer(scoped_refptr<cc::Layer> layer); | 259 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 254 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 260 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 255 void DidProduceRendererFrame(); | 261 void DidProduceRendererFrame(); |
| 256 | 262 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 ui::WindowAndroid* window_android_; | 321 ui::WindowAndroid* window_android_; |
| 316 | 322 |
| 317 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 323 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 318 }; | 324 }; |
| 319 | 325 |
| 320 bool RegisterContentViewCore(JNIEnv* env); | 326 bool RegisterContentViewCore(JNIEnv* env); |
| 321 | 327 |
| 322 } // namespace content | 328 } // namespace content |
| 323 | 329 |
| 324 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 330 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |