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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 440 |
441 // A compositor layer containing any layer that should be shown. | 441 // A compositor layer containing any layer that should be shown. |
442 scoped_refptr<cc::Layer> root_layer_; | 442 scoped_refptr<cc::Layer> root_layer_; |
443 | 443 |
444 // Page scale factor. | 444 // Page scale factor. |
445 float page_scale_; | 445 float page_scale_; |
446 | 446 |
447 // Java delegate to acquire and release anchor views from the NativeView | 447 // Java delegate to acquire and release anchor views from the NativeView |
448 base::android::ScopedJavaGlobalRef<jobject> view_android_delegate_; | 448 base::android::ScopedJavaGlobalRef<jobject> view_android_delegate_; |
449 | 449 |
| 450 // The owning window that has a hold of main application activity. |
| 451 ui::WindowAndroid* window_android_; |
| 452 |
450 // Device scale factor. | 453 // Device scale factor. |
451 const float dpi_scale_; | 454 const float dpi_scale_; |
452 | 455 |
453 // The owning window that has a hold of main application activity. | |
454 ui::WindowAndroid* window_android_; | |
455 | |
456 // Observer to notify of lifecyle changes. | 456 // Observer to notify of lifecyle changes. |
457 base::ObserverList<ContentViewCoreImplObserver> observer_list_; | 457 base::ObserverList<ContentViewCoreImplObserver> observer_list_; |
458 | 458 |
459 // The cache of device's current orientation set from Java side, this value | 459 // The cache of device's current orientation set from Java side, this value |
460 // will be sent to Renderer once it is ready. | 460 // will be sent to Renderer once it is ready. |
461 int device_orientation_; | 461 int device_orientation_; |
462 | 462 |
463 bool accessibility_enabled_; | 463 bool accessibility_enabled_; |
464 | 464 |
465 // Manages injecting Java objects. | 465 // Manages injecting Java objects. |
466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
467 | 467 |
468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
469 }; | 469 }; |
470 | 470 |
471 bool RegisterContentViewCore(JNIEnv* env); | 471 bool RegisterContentViewCore(JNIEnv* env); |
472 | 472 |
473 } // namespace content | 473 } // namespace content |
474 | 474 |
475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |