| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_DISPLAY_SCREEN_ASH_H_ | 5 #ifndef ASH_DISPLAY_SCREEN_ASH_H_ |
| 6 #define ASH_DISPLAY_SCREEN_ASH_H_ | 6 #define ASH_DISPLAY_SCREEN_ASH_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Returns a gfx::Display object for secondary display. Returns | 55 // Returns a gfx::Display object for secondary display. Returns |
| 56 // invalid display if there is no secondary display connected. | 56 // invalid display if there is no secondary display connected. |
| 57 static const gfx::Display& GetSecondaryDisplay(); | 57 static const gfx::Display& GetSecondaryDisplay(); |
| 58 | 58 |
| 59 // Returns a gfx::Display object for the specified id. Returns | 59 // Returns a gfx::Display object for the specified id. Returns |
| 60 // invalid display if no such display is connected. | 60 // invalid display if no such display is connected. |
| 61 static const gfx::Display& GetDisplayForId(int64 display_id); | 61 static const gfx::Display& GetDisplayForId(int64 display_id); |
| 62 | 62 |
| 63 // gfx::Screen overrides: | 63 // gfx::Screen overrides: |
| 64 virtual bool IsDIPEnabled() override; | |
| 65 virtual gfx::Point GetCursorScreenPoint() override; | 64 virtual gfx::Point GetCursorScreenPoint() override; |
| 66 virtual gfx::NativeWindow GetWindowUnderCursor() override; | 65 virtual gfx::NativeWindow GetWindowUnderCursor() override; |
| 67 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 66 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
| 68 override; | 67 override; |
| 69 virtual int GetNumDisplays() const override; | 68 virtual int GetNumDisplays() const override; |
| 70 virtual std::vector<gfx::Display> GetAllDisplays() const override; | 69 virtual std::vector<gfx::Display> GetAllDisplays() const override; |
| 71 virtual gfx::Display GetDisplayNearestWindow( | 70 virtual gfx::Display GetDisplayNearestWindow( |
| 72 gfx::NativeView view) const override; | 71 gfx::NativeView view) const override; |
| 73 virtual gfx::Display GetDisplayNearestPoint( | 72 virtual gfx::Display GetDisplayNearestPoint( |
| 74 const gfx::Point& point) const override; | 73 const gfx::Point& point) const override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 91 gfx::Screen* CloneForShutdown(); | 90 gfx::Screen* CloneForShutdown(); |
| 92 | 91 |
| 93 ObserverList<gfx::DisplayObserver> observers_; | 92 ObserverList<gfx::DisplayObserver> observers_; |
| 94 | 93 |
| 95 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); | 94 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 } // namespace ash | 97 } // namespace ash |
| 99 | 98 |
| 100 #endif // ASH_DISPLAY_SCREEN_ASH_H_ | 99 #endif // ASH_DISPLAY_SCREEN_ASH_H_ |
| OLD | NEW |