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 #include "mojo/services/native_viewport/platform_viewport_headless.h" | 5 #include "services/native_viewport/platform_viewport_headless.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 | 8 |
9 PlatformViewportHeadless::PlatformViewportHeadless(Delegate* delegate) | 9 PlatformViewportHeadless::PlatformViewportHeadless(Delegate* delegate) |
10 : delegate_(delegate) { | 10 : delegate_(delegate) { |
11 } | 11 } |
12 | 12 |
13 PlatformViewportHeadless::~PlatformViewportHeadless() { | 13 PlatformViewportHeadless::~PlatformViewportHeadless() { |
14 } | 14 } |
15 | 15 |
(...skipping 27 matching lines...) Expand all Loading... |
43 } | 43 } |
44 | 44 |
45 // static | 45 // static |
46 scoped_ptr<PlatformViewport> PlatformViewportHeadless::Create( | 46 scoped_ptr<PlatformViewport> PlatformViewportHeadless::Create( |
47 Delegate* delegate) { | 47 Delegate* delegate) { |
48 return scoped_ptr<PlatformViewport>( | 48 return scoped_ptr<PlatformViewport>( |
49 new PlatformViewportHeadless(delegate)).Pass(); | 49 new PlatformViewportHeadless(delegate)).Pass(); |
50 } | 50 } |
51 | 51 |
52 } // namespace mojo | 52 } // namespace mojo |
OLD | NEW |