Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 1409833004: Add DeviceDisplayInfo getter in WindowAndroid. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing bot, revert RWHVA changes, add NOTIMPLEMENTED to some functions in screen_android Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698