| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 5 #ifndef CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 
| 6 #define CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 6 #define CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "chromecast/public/graphics_types.h" | 9 #include "chromecast/public/graphics_types.h" | 
| 10 #include "ui/display/display.h" | 10 #include "ui/display/display.h" | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21 // CastBrowserMainParts, where its ownership is assigned to CastBrowserProcess. | 21 // CastBrowserMainParts, where its ownership is assigned to CastBrowserProcess. | 
| 22 // To then subsequently access CastScreen, see CastBrowerProcess. | 22 // To then subsequently access CastScreen, see CastBrowerProcess. | 
| 23 class CastScreen : public display::ScreenBase { | 23 class CastScreen : public display::ScreenBase { | 
| 24  public: | 24  public: | 
| 25   ~CastScreen() override; | 25   ~CastScreen() override; | 
| 26 | 26 | 
| 27   // display::Screen overrides: | 27   // display::Screen overrides: | 
| 28   gfx::Point GetCursorScreenPoint() override; | 28   gfx::Point GetCursorScreenPoint() override; | 
| 29   bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 29   bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 
| 30   gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 30   gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 
| 31   display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 31   display::Display GetDisplayNearestWindow( | 
|  | 32       gfx::NativeWindow window) const override; | 
| 32 | 33 | 
| 33  private: | 34  private: | 
| 34   CastScreen(); | 35   CastScreen(); | 
| 35 | 36 | 
| 36   friend class shell::CastBrowserMainParts; | 37   friend class shell::CastBrowserMainParts; | 
| 37 | 38 | 
| 38   DISALLOW_COPY_AND_ASSIGN(CastScreen); | 39   DISALLOW_COPY_AND_ASSIGN(CastScreen); | 
| 39 }; | 40 }; | 
| 40 | 41 | 
| 41 }  // namespace chromecast | 42 }  // namespace chromecast | 
| 42 | 43 | 
| 43 #endif  // CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 44 #endif  // CHROMECAST_GRAPHICS_CAST_SCREEN_H_ | 
| OLD | NEW | 
|---|