| 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 10 matching lines...) Expand all Loading... |
| 21 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/rect.h" |
| 22 #include "ui/gfx/rect_f.h" | 22 #include "ui/gfx/rect_f.h" |
| 23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 24 | 24 |
| 25 namespace ui { | 25 namespace ui { |
| 26 class ViewAndroid; | 26 class ViewAndroid; |
| 27 class WindowAndroid; | 27 class WindowAndroid; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class JavaBridgeDispatcherHostManager; | 31 class GinJavaBridgeDispatcherHost; |
| 32 class RenderWidgetHostViewAndroid; | 32 class RenderWidgetHostViewAndroid; |
| 33 struct MenuItem; | 33 struct MenuItem; |
| 34 | 34 |
| 35 // TODO(jrg): this is a shell. Upstream the rest. | 35 // TODO(jrg): this is a shell. Upstream the rest. |
| 36 class ContentViewCoreImpl : public ContentViewCore, | 36 class ContentViewCoreImpl : public ContentViewCore, |
| 37 public WebContentsObserver { | 37 public WebContentsObserver { |
| 38 public: | 38 public: |
| 39 static ContentViewCoreImpl* FromWebContents(WebContents* web_contents); | 39 static ContentViewCoreImpl* FromWebContents(WebContents* web_contents); |
| 40 ContentViewCoreImpl(JNIEnv* env, | 40 ContentViewCoreImpl(JNIEnv* env, |
| 41 jobject obj, | 41 jobject obj, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // The owning window that has a hold of main application activity. | 393 // The owning window that has a hold of main application activity. |
| 394 ui::WindowAndroid* window_android_; | 394 ui::WindowAndroid* window_android_; |
| 395 | 395 |
| 396 // The cache of device's current orientation set from Java side, this value | 396 // The cache of device's current orientation set from Java side, this value |
| 397 // will be sent to Renderer once it is ready. | 397 // will be sent to Renderer once it is ready. |
| 398 int device_orientation_; | 398 int device_orientation_; |
| 399 | 399 |
| 400 bool accessibility_enabled_; | 400 bool accessibility_enabled_; |
| 401 | 401 |
| 402 // Manages injecting Java objects. | 402 // Manages injecting Java objects. |
| 403 scoped_ptr<JavaBridgeDispatcherHostManager> | 403 scoped_ptr<GinJavaBridgeDispatcherHost> |
| 404 java_bridge_dispatcher_host_manager_; | 404 java_bridge_dispatcher_host_; |
| 405 | 405 |
| 406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 bool RegisterContentViewCore(JNIEnv* env); | 409 bool RegisterContentViewCore(JNIEnv* env); |
| 410 | 410 |
| 411 } // namespace content | 411 } // namespace content |
| 412 | 412 |
| 413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |