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

Side by Side Diff: ui/ozone/platform/drm/cursor_proxy_mojo.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « ui/ozone/platform/drm/DEPS ('k') | ui/ozone/platform/drm/gpu/drm_thread.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ui/ozone/platform/drm/cursor_proxy_mojo.h" 5 #include "ui/ozone/platform/drm/cursor_proxy_mojo.h"
6 6
7 #include "services/shell/public/cpp/connector.h" 7 #include "services/service_manager/public/cpp/connector.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 CursorProxyMojo::CursorProxyMojo(shell::Connector* connector) 11 CursorProxyMojo::CursorProxyMojo(shell::Connector* connector)
12 : connector_(connector->Clone()) { 12 : connector_(connector->Clone()) {
13 connector->ConnectToInterface("service:ui", &main_cursor_ptr_); 13 connector->ConnectToInterface("service:ui", &main_cursor_ptr_);
14 } 14 }
15 15
16 void CursorProxyMojo::InitializeOnEvdev() { 16 void CursorProxyMojo::InitializeOnEvdev() {
17 evdev_ref_ = base::PlatformThread::CurrentRef(); 17 evdev_ref_ = base::PlatformThread::CurrentRef();
(...skipping 16 matching lines...) Expand all
34 void CursorProxyMojo::Move(gfx::AcceleratedWidget widget, 34 void CursorProxyMojo::Move(gfx::AcceleratedWidget widget,
35 const gfx::Point& location) { 35 const gfx::Point& location) {
36 if (evdev_ref_ == base::PlatformThread::CurrentRef()) { 36 if (evdev_ref_ == base::PlatformThread::CurrentRef()) {
37 evdev_cursor_ptr_->MoveCursor(widget, location); 37 evdev_cursor_ptr_->MoveCursor(widget, location);
38 } else { 38 } else {
39 main_cursor_ptr_->MoveCursor(widget, location); 39 main_cursor_ptr_->MoveCursor(widget, location);
40 } 40 }
41 } 41 }
42 42
43 } // namespace ui 43 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/DEPS ('k') | ui/ozone/platform/drm/gpu/drm_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698