| 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 22 matching lines...) Expand all Loading... |
| 33 class NativeViewportImpl : public mojo::NativeViewport, | 33 class NativeViewportImpl : public mojo::NativeViewport, |
| 34 public PlatformViewport::Delegate, | 34 public PlatformViewport::Delegate, |
| 35 public mojo::ErrorHandler { | 35 public mojo::ErrorHandler { |
| 36 public: | 36 public: |
| 37 NativeViewportImpl(bool is_headless, | 37 NativeViewportImpl(bool is_headless, |
| 38 const scoped_refptr<gles2::GpuState>& gpu_state, | 38 const scoped_refptr<gles2::GpuState>& gpu_state, |
| 39 mojo::InterfaceRequest<mojo::NativeViewport> request); | 39 mojo::InterfaceRequest<mojo::NativeViewport> request); |
| 40 ~NativeViewportImpl() override; | 40 ~NativeViewportImpl() override; |
| 41 | 41 |
| 42 // NativeViewport implementation. | 42 // NativeViewport implementation. |
| 43 void Create(mojo::SizePtr size, const CreateCallback& callback) override; | 43 void Create(mojo::SizePtr size, |
| 44 mojo::SurfaceConfigurationPtr requested_configuration, |
| 45 const CreateCallback& callback) override; |
| 44 void RequestMetrics(const RequestMetricsCallback& callback) override; | 46 void RequestMetrics(const RequestMetricsCallback& callback) override; |
| 45 void Show() override; | 47 void Show() override; |
| 46 void Hide() override; | 48 void Hide() override; |
| 47 void Close() override; | 49 void Close() override; |
| 48 void SetSize(mojo::SizePtr size) override; | 50 void SetSize(mojo::SizePtr size) override; |
| 49 void GetContextProvider( | 51 void GetContextProvider( |
| 50 mojo::InterfaceRequest<mojo::ContextProvider> request) override; | 52 mojo::InterfaceRequest<mojo::ContextProvider> request) override; |
| 51 void SetEventDispatcher( | 53 void SetEventDispatcher( |
| 52 mojo::NativeViewportEventDispatcherPtr dispatcher) override; | 54 mojo::NativeViewportEventDispatcherPtr dispatcher) override; |
| 53 | 55 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 81 std::set<int32> pointers_waiting_on_ack_; | 83 std::set<int32> pointers_waiting_on_ack_; |
| 82 | 84 |
| 83 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; | 85 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; |
| 84 | 86 |
| 85 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); | 87 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 } // namespace native_viewport | 90 } // namespace native_viewport |
| 89 | 91 |
| 90 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 92 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
| OLD | NEW |