OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 5 #ifndef SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
6 #define SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 6 #define SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 mojo::SurfaceConfigurationPtr requested_configuration, | 48 mojo::SurfaceConfigurationPtr requested_configuration, |
49 const CreateCallback& callback) override; | 49 const CreateCallback& callback) override; |
50 void RequestMetrics(const RequestMetricsCallback& callback) override; | 50 void RequestMetrics(const RequestMetricsCallback& callback) override; |
51 void Show() override; | 51 void Show() override; |
52 void Hide() override; | 52 void Hide() override; |
53 void Close() override; | 53 void Close() override; |
54 void SetSize(mojo::SizePtr size) override; | 54 void SetSize(mojo::SizePtr size) override; |
55 void GetContextProvider( | 55 void GetContextProvider( |
56 mojo::InterfaceRequest<mojo::ContextProvider> request) override; | 56 mojo::InterfaceRequest<mojo::ContextProvider> request) override; |
57 void SetEventDispatcher( | 57 void SetEventDispatcher( |
58 mojo::NativeViewportEventDispatcherPtr dispatcher) override; | 58 mojo::InterfaceHandle<mojo::NativeViewportEventDispatcher> dispatcher) |
| 59 override; |
59 | 60 |
60 // PlatformViewport::Delegate implementation. | 61 // PlatformViewport::Delegate implementation. |
61 void OnMetricsChanged(mojo::ViewportMetricsPtr metrics) override; | 62 void OnMetricsChanged(mojo::ViewportMetricsPtr metrics) override; |
62 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override; | 63 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override; |
63 void OnAcceleratedWidgetDestroyed() override; | 64 void OnAcceleratedWidgetDestroyed() override; |
64 bool OnEvent(mojo::EventPtr event) override; | 65 bool OnEvent(mojo::EventPtr event) override; |
65 void OnDestroyed() override; | 66 void OnDestroyed() override; |
66 | 67 |
67 private: | 68 private: |
68 // Callback when the dispatcher has processed a message we're waiting on | 69 // Callback when the dispatcher has processed a message we're waiting on |
(...skipping 16 matching lines...) Expand all Loading... |
85 std::set<int32> pointers_waiting_on_ack_; | 86 std::set<int32> pointers_waiting_on_ack_; |
86 | 87 |
87 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; | 88 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); | 90 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace native_viewport | 93 } // namespace native_viewport |
93 | 94 |
94 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 95 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
OLD | NEW |