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 #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 Loading... |
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_ |
OLD | NEW |