OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
| 6 #define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
| 7 |
5 #include "base/macros.h" | 8 #include "base/macros.h" |
6 #include "mojo/services/native_viewport/platform_viewport.h" | 9 #include "services/native_viewport/platform_viewport.h" |
7 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
8 | 11 |
9 namespace mojo { | 12 namespace mojo { |
10 | 13 |
11 class PlatformViewportHeadless : public PlatformViewport { | 14 class PlatformViewportHeadless : public PlatformViewport { |
12 public: | 15 public: |
13 ~PlatformViewportHeadless() override; | 16 ~PlatformViewportHeadless() override; |
14 | 17 |
15 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); | 18 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); |
16 | 19 |
(...skipping 10 matching lines...) Expand all Loading... |
27 void SetCapture() override; | 30 void SetCapture() override; |
28 void ReleaseCapture() override; | 31 void ReleaseCapture() override; |
29 | 32 |
30 Delegate* delegate_; | 33 Delegate* delegate_; |
31 gfx::Rect bounds_; | 34 gfx::Rect bounds_; |
32 | 35 |
33 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); | 36 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace mojo | 39 } // namespace mojo |
| 40 |
| 41 #endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
OLD | NEW |