OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |