Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: mojo/services/native_viewport/native_viewport_stub.cc

Issue 404913002: Break dependency of native_viewport_service on mojo::shell::Context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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, 44 NativeViewportContext* context,
45 NativeViewportDelegate* delegate) { 45 NativeViewportDelegate* delegate) {
46 return scoped_ptr<NativeViewport>(new NativeViewportStub(delegate)).Pass(); 46 return scoped_ptr<NativeViewport>(new NativeViewportStub(delegate)).Pass();
47 } 47 }
48 48
49 } // namespace services 49 } // namespace services
50 } // namespace mojo 50 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698