Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 5 #ifndef UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| 6 #define UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 6 #define UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/display/screen_base.h" | 12 #include "ui/display/screen_base.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 | 15 |
| 16 class DisplayAndroidManager : public display::ScreenBase { | 16 class DisplayAndroidManager : public display::ScreenBase { |
| 17 public: | 17 public: |
| 18 ~DisplayAndroidManager() override; | 18 ~DisplayAndroidManager() override; |
| 19 | 19 |
| 20 display::Display GetDisplayNearestWindowAndroid( | |
|
boliu
2017/01/04 18:58:06
add a comment that this is here because NativeWind
Jinsuk Kim
2017/01/05 11:03:12
Done.
| |
| 21 gfx::NativeWindow window) const; | |
| 22 | |
| 20 // Screen interface. | 23 // Screen interface. |
| 21 | 24 |
| 22 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 25 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; |
| 23 display::Display GetDisplayNearestPoint( | 26 display::Display GetDisplayNearestPoint( |
| 24 const gfx::Point& point) const override; | 27 const gfx::Point& point) const override; |
| 25 display::Display GetDisplayMatching( | 28 display::Display GetDisplayMatching( |
| 26 const gfx::Rect& match_rect) const override; | 29 const gfx::Rect& match_rect) const override; |
| 27 | 30 |
| 28 // Methods called from Java. | 31 // Methods called from Java. |
| 29 | 32 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 50 DisplayAndroidManager(); | 53 DisplayAndroidManager(); |
| 51 | 54 |
| 52 int primary_display_id_ = 0; | 55 int primary_display_id_ = 0; |
| 53 | 56 |
| 54 DISALLOW_COPY_AND_ASSIGN(DisplayAndroidManager); | 57 DISALLOW_COPY_AND_ASSIGN(DisplayAndroidManager); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace ui | 60 } // namespace ui |
| 58 | 61 |
| 59 #endif // UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ | 62 #endif // UI_ANDROID_DISPLAY_ANDROID_MANAGER_H_ |
| OLD | NEW |