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

Side by Side Diff: mojo/services/native_viewport/native_viewport.h

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 7 years 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 #ifndef MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_ 5 #ifndef MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_
6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_ 6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 23 matching lines...) Expand all
34 // TODO(abarth): Rename this class so that it doesn't conflict with the name of 34 // TODO(abarth): Rename this class so that it doesn't conflict with the name of
35 // the service. 35 // the service.
36 class NativeViewport { 36 class NativeViewport {
37 public: 37 public:
38 virtual ~NativeViewport() {} 38 virtual ~NativeViewport() {}
39 39
40 virtual void Init() = 0; 40 virtual void Init() = 0;
41 virtual void Close() = 0; 41 virtual void Close() = 0;
42 virtual gfx::Size GetSize() = 0; 42 virtual gfx::Size GetSize() = 0;
43 43
44 static scoped_ptr<NativeViewport> Create(shell::Context* context, 44 static scoped_ptr<NativeViewport> Create(NativeViewportDelegate* delegate);
45 NativeViewportDelegate* delegate);
46 }; 45 };
47 46
48 } // namespace services 47 } // namespace services
49 } // namespace mojo 48 } // namespace mojo
50 49
51 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_ 50 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698