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); |
}; |