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

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

Issue 391583002: ui/platform_window: Introduce PlatformWindow for windowing primitives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 #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 "mojo/services/native_viewport/native_viewport_export.h" 9 #include "mojo/services/native_viewport/native_viewport_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void SetBounds(const gfx::Rect& bounds) = 0; 50 virtual void SetBounds(const gfx::Rect& bounds) = 0;
51 51
52 virtual void SetCapture() = 0; 52 virtual void SetCapture() = 0;
53 virtual void ReleaseCapture() = 0; 53 virtual void ReleaseCapture() = 0;
54 54
55 // |context| is NULL when loaded into separate process. 55 // |context| is NULL when loaded into separate process.
56 static scoped_ptr<NativeViewport> Create(shell::Context* context, 56 static scoped_ptr<NativeViewport> Create(shell::Context* context,
57 NativeViewportDelegate* delegate); 57 NativeViewportDelegate* delegate);
58 }; 58 };
59 59
60 #if defined(USE_X11)
61 namespace test {
62 MOJO_NATIVE_VIEWPORT_EXPORT void EnableTestNativeViewport();
63 }
64 #endif
65
66 } // namespace services 60 } // namespace services
67 } // namespace mojo 61 } // namespace mojo
68 62
69 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_ 63 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_H_
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/DEPS ('k') | mojo/services/native_viewport/native_viewport_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698