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

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

Issue 1130353008: Ensure that NativeViewport destructs correctly on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ 5 #ifndef COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
6 #define COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ 6 #define COMPONENTS_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void OnConnectionError() override; 63 void OnConnectionError() override;
64 64
65 private: 65 private:
66 // Callback when the dispatcher has processed a message we're waiting on 66 // Callback when the dispatcher has processed a message we're waiting on
67 // an ack from. |pointer_id| identifies the pointer the message was associated 67 // an ack from. |pointer_id| identifies the pointer the message was associated
68 // with. 68 // with.
69 void AckEvent(int32 pointer_id); 69 void AckEvent(int32 pointer_id);
70 70
71 bool is_headless_; 71 bool is_headless_;
72 scoped_ptr<PlatformViewport> platform_viewport_; 72 scoped_ptr<PlatformViewport> platform_viewport_;
73 OnscreenContextProvider context_provider_; 73 scoped_ptr<OnscreenContextProvider> context_provider_;
74 bool sent_metrics_; 74 bool sent_metrics_;
75 mojo::ViewportMetricsPtr metrics_; 75 mojo::ViewportMetricsPtr metrics_;
76 CreateCallback create_callback_; 76 CreateCallback create_callback_;
77 RequestMetricsCallback metrics_callback_; 77 RequestMetricsCallback metrics_callback_;
78 mojo::NativeViewportEventDispatcherPtr event_dispatcher_; 78 mojo::NativeViewportEventDispatcherPtr event_dispatcher_;
79 mojo::Binding<mojo::NativeViewport> binding_; 79 mojo::Binding<mojo::NativeViewport> binding_;
80 80
81 // Set of pointer_ids we've sent a move to and are waiting on an ack. 81 // Set of pointer_ids we've sent a move to and are waiting on an ack.
82 std::set<int32> pointers_waiting_on_ack_; 82 std::set<int32> pointers_waiting_on_ack_;
83 83
84 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; 84 base::WeakPtrFactory<NativeViewportImpl> weak_factory_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); 86 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl);
87 }; 87 };
88 88
89 } // namespace native_viewport 89 } // namespace native_viewport
90 90
91 #endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ 91 #endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
OLDNEW
« no previous file with comments | « components/native_viewport/native_viewport_application_delegate.cc ('k') | components/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698