| 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 MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/gfx/display.h" | 9 #include "ui/gfx/display.h" |
| 10 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 class Transform; | 14 class Transform; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace view_manager { | |
| 19 namespace service { | 18 namespace service { |
| 20 | 19 |
| 21 // A minimal implementation of gfx::Screen for the view manager. | 20 // A minimal implementation of gfx::Screen for the view manager. |
| 22 class ScreenImpl : public gfx::Screen { | 21 class ScreenImpl : public gfx::Screen { |
| 23 public: | 22 public: |
| 24 static gfx::Screen* Create(); | 23 static gfx::Screen* Create(); |
| 25 virtual ~ScreenImpl(); | 24 virtual ~ScreenImpl(); |
| 26 | 25 |
| 27 protected: | 26 protected: |
| 28 // gfx::Screen overrides: | 27 // gfx::Screen overrides: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 45 | 44 |
| 46 private: | 45 private: |
| 47 explicit ScreenImpl(const gfx::Rect& screen_bounds); | 46 explicit ScreenImpl(const gfx::Rect& screen_bounds); |
| 48 | 47 |
| 49 gfx::Display display_; | 48 gfx::Display display_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(ScreenImpl); | 50 DISALLOW_COPY_AND_ASSIGN(ScreenImpl); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace service | 53 } // namespace service |
| 55 } // namespace view_manager | |
| 56 } // namespace mojo | 54 } // namespace mojo |
| 57 | 55 |
| 58 #endif // MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ | 56 #endif // MOJO_SERVICES_VIEW_MANAGER_SCREEN_IMPL_H_ |
| OLD | NEW |