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

Side by Side Diff: components/view_manager/native_viewport/native_viewport_impl.cc

Issue 1131523007: Move NativeViewport service into view_manager. This is a file move only. Further merging will happe… (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 #include "components/native_viewport/native_viewport_impl.h" 5 #include "components/view_manager/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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/gles2/gpu_state.h" 12 #include "components/gles2/gpu_state.h"
13 #include "components/native_viewport/platform_viewport_headless.h" 13 #include "components/view_manager/native_viewport/platform_viewport_headless.h"
14 #include "mojo/application/public/cpp/interface_factory.h" 14 #include "mojo/application/public/cpp/interface_factory.h"
15 #include "mojo/converters/geometry/geometry_type_converters.h" 15 #include "mojo/converters/geometry/geometry_type_converters.h"
16 #include "ui/events/event.h" 16 #include "ui/events/event.h"
17 17
18 namespace native_viewport { 18 namespace native_viewport {
19 19
20 NativeViewportImpl::NativeViewportImpl( 20 NativeViewportImpl::NativeViewportImpl(
21 bool is_headless, 21 bool is_headless,
22 const scoped_refptr<gles2::GpuState>& gpu_state, 22 const scoped_refptr<gles2::GpuState>& gpu_state,
23 mojo::InterfaceRequest<mojo::NativeViewport> request, 23 mojo::InterfaceRequest<mojo::NativeViewport> request,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void NativeViewportImpl::OnConnectionError() { 163 void NativeViewportImpl::OnConnectionError() {
164 binding_.set_error_handler(nullptr); 164 binding_.set_error_handler(nullptr);
165 delete this; 165 delete this;
166 } 166 }
167 167
168 void NativeViewportImpl::AckEvent(int32 pointer_id) { 168 void NativeViewportImpl::AckEvent(int32 pointer_id) {
169 pointers_waiting_on_ack_.erase(pointer_id); 169 pointers_waiting_on_ack_.erase(pointer_id);
170 } 170 }
171 171
172 } // namespace native_viewport 172 } // namespace native_viewport
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698