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

Unified Diff: ui/android/window_android.h

Issue 1144333004: Make WebView work for external displays (over Presentations). Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor naming/comment fixes Created 5 years, 5 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 c36087b6357fdad543bc89e93c7d209ccc3fdff1..5264d009fa33ee13babc12a3baf8eded1722115b 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -14,6 +14,7 @@
#include "base/observer_list.h"
#include "base/time/time.h"
#include "ui/android/ui_android_export.h"
+#include "ui/gfx/android/device_display_info.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace ui {
@@ -69,6 +70,11 @@ 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();
+ void UpdateDeviceDisplayInfo();
+
+ base::android::ScopedJavaLocalRef<jobject> GetJavaDisplayContext();
boliu 2015/07/15 06:38:47 Looks like this is public only for ResourceManager
gsennton 2015/07/15 19:26:21 That should work, I am not sure how we would handl
boliu 2015/07/16 14:36:56 ResourceManager is created during construction, wh
gsennton 2015/10/20 13:27:12 I'm not sure how we would pass it from the Content
boliu 2015/10/20 15:07:22 Got lost in the pronoun game. What's "it" and "thi
gsennton 2015/10/20 18:46:44 Ah, sorry: I'm not sure how we would pass it = 't
boliu 2015/10/21 15:54:59 native WindowAndroid is already passed to Composit
gsennton 2015/10/21 16:35:32 Yes, but the problem is that GetJavaDisplayContext
+
private:
~WindowAndroid();
@@ -77,6 +83,7 @@ class UI_ANDROID_EXPORT WindowAndroid {
WindowAndroidCompositor* compositor_;
base::ObserverList<WindowAndroidObserver> observer_list_;
+ scoped_ptr<gfx::DeviceDisplayInfo> device_display_info_;
DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698