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

Unified Diff: ui/android/window_android.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/ui_android.gyp ('k') | ui/android/window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android.h
diff --git a/ui/android/window_android.h b/ui/android/window_android.h
index 258afcd355fbf43d332426a29d5439b5d2ea700b..9b74cf1c7518740614ec89c030c5753045f5877f 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -17,6 +17,10 @@
#include "ui/android/ui_android_export.h"
#include "ui/gfx/geometry/vector2d_f.h"
+namespace gfx {
+class DeviceDisplayInfo;
+}
+
namespace ui {
class WindowAndroidCompositor;
@@ -76,6 +80,8 @@ class UI_ANDROID_EXPORT WindowAndroid {
static WindowAndroid* createForTesting();
+ const gfx::DeviceDisplayInfo& GetDeviceDisplayInfo() const;
+
private:
~WindowAndroid();
@@ -84,6 +90,8 @@ class UI_ANDROID_EXPORT WindowAndroid {
WindowAndroidCompositor* compositor_;
base::ObserverList<WindowAndroidObserver> observer_list_;
+ // TODO(gsennton): Update display info on screen orientation updates.
+ const scoped_ptr<gfx::DeviceDisplayInfo> device_display_info_;
DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
};
« no previous file with comments | « ui/android/ui_android.gyp ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698