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/native_viewport.h" | 5 #include "mojo/services/native_viewport/native_viewport.h" |
6 | 6 |
7 // Stub to build on platforms we don't fully support yet. | 7 // Stub to build on platforms we don't fully support yet. |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace services { | 10 namespace services { |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE { | 34 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE { |
35 } | 35 } |
36 | 36 |
37 NativeViewportDelegate* delegate_; | 37 NativeViewportDelegate* delegate_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(NativeViewportStub); | 39 DISALLOW_COPY_AND_ASSIGN(NativeViewportStub); |
40 }; | 40 }; |
41 | 41 |
42 // static | 42 // static |
43 scoped_ptr<NativeViewport> NativeViewport::Create( | 43 scoped_ptr<NativeViewport> NativeViewport::Create( |
44 shell::Context* context, | |
45 NativeViewportDelegate* delegate) { | 44 NativeViewportDelegate* delegate) { |
46 return scoped_ptr<NativeViewport>(new NativeViewportStub(delegate)).Pass(); | 45 return scoped_ptr<NativeViewport>(new NativeViewportStub(delegate)).Pass(); |
47 } | 46 } |
48 | 47 |
49 } // namespace services | 48 } // namespace services |
50 } // namespace mojo | 49 } // namespace mojo |
OLD | NEW |