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

Unified Diff: ui/android/display_android_manager.h

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: view_root.java_obj_... Created 3 years, 11 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/BUILD.gn ('k') | ui/android/display_android_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/display_android_manager.h
diff --git a/ui/android/display_android_manager.h b/ui/android/display_android_manager.h
index 9eae6fac7383d25f316096e608828bd690412835..785d2afd51ea9507b70287ec50ad027af8f21608 100644
--- a/ui/android/display_android_manager.h
+++ b/ui/android/display_android_manager.h
@@ -9,14 +9,22 @@
#include "base/android/jni_android.h"
#include "base/macros.h"
+#include "ui/android/ui_android_export.h"
#include "ui/display/screen_base.h"
namespace ui {
-class DisplayAndroidManager : public display::ScreenBase {
+class UI_ANDROID_EXPORT DisplayAndroidManager : public display::ScreenBase {
public:
~DisplayAndroidManager() override;
+ // Prefer using |Screen::GetScreen()|. Only use this to avoid casting.
+ static DisplayAndroidManager* GetInstance();
+
+ // This method is needed since NativeWindow is not a NativeView on Android.
+ display::Display GetDisplayNearestWindowAndroid(
+ gfx::NativeWindow window) const;
+
// Screen interface.
display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
« no previous file with comments | « ui/android/BUILD.gn ('k') | ui/android/display_android_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698