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

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

Issue 431683002: platform_window: Add SetCursor & MoveCursorTo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/test/test_window.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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 59 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
60 virtual void Show() OVERRIDE; 60 virtual void Show() OVERRIDE;
61 virtual void Hide() OVERRIDE; 61 virtual void Hide() OVERRIDE;
62 virtual void Close() OVERRIDE; 62 virtual void Close() OVERRIDE;
63 virtual void SetCapture() OVERRIDE; 63 virtual void SetCapture() OVERRIDE;
64 virtual void ReleaseCapture() OVERRIDE; 64 virtual void ReleaseCapture() OVERRIDE;
65 virtual void ToggleFullscreen() OVERRIDE; 65 virtual void ToggleFullscreen() OVERRIDE;
66 virtual void Maximize() OVERRIDE; 66 virtual void Maximize() OVERRIDE;
67 virtual void Minimize() OVERRIDE; 67 virtual void Minimize() OVERRIDE;
68 virtual void Restore() OVERRIDE; 68 virtual void Restore() OVERRIDE;
69 virtual void SetCursor(PlatformCursor cursor) OVERRIDE;
70 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
69 71
70 // PlatformEventDispatcher: 72 // PlatformEventDispatcher:
71 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; 73 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE;
72 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; 74 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE;
73 75
74 private: 76 private:
75 PlatformWindowDelegate* delegate_; 77 PlatformWindowDelegate* delegate_;
76 LibeglplatformShimLoader* eglplatform_shim_; 78 LibeglplatformShimLoader* eglplatform_shim_;
77 gfx::Rect bounds_; 79 gfx::Rect bounds_;
78 ShimNativeWindowId window_id_; 80 ShimNativeWindowId window_id_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 void EgltestWindow::Maximize() { 130 void EgltestWindow::Maximize() {
129 } 131 }
130 132
131 void EgltestWindow::Minimize() { 133 void EgltestWindow::Minimize() {
132 } 134 }
133 135
134 void EgltestWindow::Restore() { 136 void EgltestWindow::Restore() {
135 } 137 }
136 138
139 void EgltestWindow::SetCursor(PlatformCursor cursor) {
140 }
141
142 void EgltestWindow::MoveCursorTo(const gfx::Point& location) {
143 }
144
137 bool EgltestWindow::CanDispatchEvent(const ui::PlatformEvent& ne) { 145 bool EgltestWindow::CanDispatchEvent(const ui::PlatformEvent& ne) {
138 return true; 146 return true;
139 } 147 }
140 148
141 uint32_t EgltestWindow::DispatchEvent(const ui::PlatformEvent& ne) { 149 uint32_t EgltestWindow::DispatchEvent(const ui::PlatformEvent& ne) {
142 ui::Event* event = static_cast<ui::Event*>(ne); 150 ui::Event* event = static_cast<ui::Event*>(ne);
143 delegate_->DispatchEvent(event); 151 delegate_->DispatchEvent(event);
144 return ui::POST_DISPATCH_STOP_PROPAGATION; 152 return ui::POST_DISPATCH_STOP_PROPAGATION;
145 } 153 }
146 154
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 387
380 } // namespace 388 } // namespace
381 389
382 OzonePlatform* CreateOzonePlatformEgltest() { 390 OzonePlatform* CreateOzonePlatformEgltest() {
383 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 391 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
384 platform->Initialize(); 392 platform->Initialize();
385 return platform; 393 return platform;
386 } 394 }
387 395
388 } // namespace ui 396 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/test/test_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698