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

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

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 #include "services/native_viewport/native_viewport_impl.h" 5 #include "services/native_viewport/native_viewport_impl.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 157
158 void NativeViewportImpl::OnDestroyed() { 158 void NativeViewportImpl::OnDestroyed() {
159 delete this; 159 delete this;
160 } 160 }
161 161
162 void NativeViewportImpl::AckEvent(int32 pointer_id) { 162 void NativeViewportImpl::AckEvent(int32 pointer_id) {
163 pointers_waiting_on_ack_.erase(pointer_id); 163 pointers_waiting_on_ack_.erase(pointer_id);
164 } 164 }
165 165
166 base::WeakPtr<NativeViewportImpl> NativeViewportImpl::GetWeakPtr() {
167 return weak_factory_.GetWeakPtr();
168 }
169
170 bool NativeViewportImpl::NewNativeSurfaceAvailable() {
171 return platform_viewport_->NewNativeSurfaceAvailable();
172 }
173
166 } // namespace native_viewport 174 } // namespace native_viewport
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698