| 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 COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
| 6 #define COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ | 6 #define COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/view_manager/native_viewport/platform_viewport.h" | 9 #include "components/view_manager/native_viewport/platform_viewport.h" |
| 10 #include "components/view_manager/public/interfaces/view_manager.mojom.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 11 | 12 |
| 12 namespace native_viewport { | 13 namespace native_viewport { |
| 13 | 14 |
| 14 class PlatformViewportHeadless : public PlatformViewport { | 15 class PlatformViewportHeadless : public PlatformViewport { |
| 15 public: | 16 public: |
| 16 ~PlatformViewportHeadless() override; | 17 ~PlatformViewportHeadless() override; |
| 17 | 18 |
| 18 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); | 19 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); |
| 19 | 20 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 | 31 |
| 31 Delegate* delegate_; | 32 Delegate* delegate_; |
| 32 mojo::ViewportMetricsPtr metrics_; | 33 mojo::ViewportMetricsPtr metrics_; |
| 33 | 34 |
| 34 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); | 35 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace native_viewport | 38 } // namespace native_viewport |
| 38 | 39 |
| 39 #endif // COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ | 40 #endif // COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_ |
| OLD | NEW |