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

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 527293002: ozone: Remove CursorFactoryOzone::SetCursor, GetCursorWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/dri/ozone_platform_gbm.cc ('k') | ui/ozone/platform/test/BUILD.gn » ('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 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 "ui/ozone/platform/egltest/ozone_platform_egltest.h" 5 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void EgltestWindow::Maximize() { 134 void EgltestWindow::Maximize() {
135 } 135 }
136 136
137 void EgltestWindow::Minimize() { 137 void EgltestWindow::Minimize() {
138 } 138 }
139 139
140 void EgltestWindow::Restore() { 140 void EgltestWindow::Restore() {
141 } 141 }
142 142
143 void EgltestWindow::SetCursor(PlatformCursor cursor) { 143 void EgltestWindow::SetCursor(PlatformCursor cursor) {
144 CursorFactoryOzone::GetInstance()->SetCursor(window_id_, cursor);
145 } 144 }
146 145
147 void EgltestWindow::MoveCursorTo(const gfx::Point& location) { 146 void EgltestWindow::MoveCursorTo(const gfx::Point& location) {
148 event_factory_->WarpCursorTo(window_id_, location); 147 event_factory_->WarpCursorTo(window_id_, location);
149 } 148 }
150 149
151 bool EgltestWindow::CanDispatchEvent(const ui::PlatformEvent& ne) { 150 bool EgltestWindow::CanDispatchEvent(const ui::PlatformEvent& ne) {
152 return true; 151 return true;
153 } 152 }
154 153
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 384
386 } // namespace 385 } // namespace
387 386
388 OzonePlatform* CreateOzonePlatformEgltest() { 387 OzonePlatform* CreateOzonePlatformEgltest() {
389 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 388 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
390 platform->Initialize(); 389 platform->Initialize();
391 return platform; 390 return platform;
392 } 391 }
393 392
394 } // namespace ui 393 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_gbm.cc ('k') | ui/ozone/platform/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698