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

Side by Side Diff: ui/ozone/platform/dri/dri_window.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.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('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/dri/dri_window.h" 5 #include "ui/ozone/platform/dri/dri_window.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/events/platform/platform_event_source.h" 8 #include "ui/events/platform/platform_event_source.h"
9 #include "ui/ozone/platform/dri/dri_surface_factory.h" 9 #include "ui/ozone/platform/dri/dri_surface_factory.h"
10 #include "ui/ozone/public/cursor_factory_ozone.h" 10 #include "ui/ozone/public/cursor_factory_ozone.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void DriWindow::ReleaseCapture() {} 46 void DriWindow::ReleaseCapture() {}
47 47
48 void DriWindow::ToggleFullscreen() {} 48 void DriWindow::ToggleFullscreen() {}
49 49
50 void DriWindow::Maximize() {} 50 void DriWindow::Maximize() {}
51 51
52 void DriWindow::Minimize() {} 52 void DriWindow::Minimize() {}
53 53
54 void DriWindow::Restore() {} 54 void DriWindow::Restore() {}
55 55
56 void DriWindow::SetCursor(PlatformCursor cursor) {}
57
58 void DriWindow::MoveCursorTo(const gfx::Point& location) {}
59
56 bool DriWindow::CanDispatchEvent(const PlatformEvent& ne) { 60 bool DriWindow::CanDispatchEvent(const PlatformEvent& ne) {
57 DCHECK(ne); 61 DCHECK(ne);
58 Event* event = static_cast<Event*>(ne); 62 Event* event = static_cast<Event*>(ne);
59 if (event->IsMouseEvent() || event->IsScrollEvent()) 63 if (event->IsMouseEvent() || event->IsScrollEvent())
60 return ui::CursorFactoryOzone::GetInstance()->GetCursorWindow() == widget_; 64 return ui::CursorFactoryOzone::GetInstance()->GetCursorWindow() == widget_;
61 65
62 return true; 66 return true;
63 } 67 }
64 68
65 uint32_t DriWindow::DispatchEvent(const PlatformEvent& ne) { 69 uint32_t DriWindow::DispatchEvent(const PlatformEvent& ne) {
66 Event* event = static_cast<Event*>(ne); 70 Event* event = static_cast<Event*>(ne);
67 delegate_->DispatchEvent(event); 71 delegate_->DispatchEvent(event);
68 return POST_DISPATCH_STOP_PROPAGATION; 72 return POST_DISPATCH_STOP_PROPAGATION;
69 } 73 }
70 74
71 } // namespace ui 75 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698