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

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

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Final cleanups Created 5 years, 6 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
« no previous file with comments | « services/native_viewport/BUILD.gn ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « services/native_viewport/BUILD.gn ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698