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

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: Created 5 years, 2 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
Index: ui/android/window_android.h
diff --git a/ui/android/window_android.h b/ui/android/window_android.h
index 58f1e280bd6a9639ac9368cce647ed9a1ef2c86b..4215d81efc2151940cd9e4e890bade1b98e04b18 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -16,6 +16,10 @@
#include "ui/android/ui_android_export.h"
#include "ui/gfx/geometry/vector2d_f.h"
+namespace gfx {
+class DeviceDisplayInfo;
+}
+
namespace ui {
class WindowAndroidCompositor;
@@ -69,6 +73,8 @@ class UI_ANDROID_EXPORT WindowAndroid {
// Return whether the specified Android permission can be requested by Chrome.
bool CanRequestPermission(const std::string& permission);
+ const gfx::DeviceDisplayInfo& GetDeviceDisplayInfo();
+
private:
~WindowAndroid();
@@ -77,6 +83,8 @@ class UI_ANDROID_EXPORT WindowAndroid {
WindowAndroidCompositor* compositor_;
base::ObserverList<WindowAndroidObserver> observer_list_;
+ // TODO(gsennton) update display info on screen orientation updates
jdduke (slow) 2015/10/21 17:18:25 Nit: "TODO(gsennton): Update... updates."
gsennton 2015/10/22 11:17:27 Done.
+ scoped_ptr<gfx::DeviceDisplayInfo> device_display_info_;
DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698