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

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

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « services/native_support/process_impl.cc ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698