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

Side by Side Diff: ui/ozone/platform/dri/dri_window.cc

Issue 896343002: ozone: dri: Re-add call to show cursor after bounds change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/events/devices/device_data_manager.h" 8 #include "ui/events/devices/device_data_manager.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 10 #include "ui/events/ozone/evdev/event_factory_evdev.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 SendBoundsChange(); 173 SendBoundsChange();
174 cursor_->ConfineCursorToBounds(widget_, GetCursorConfinedBounds()); 174 cursor_->ConfineCursorToBounds(widget_, GetCursorConfinedBounds());
175 } 175 }
176 176
177 void DriWindow::OnChannelDestroyed() { 177 void DriWindow::OnChannelDestroyed() {
178 } 178 }
179 179
180 void DriWindow::SendBoundsChange() { 180 void DriWindow::SendBoundsChange() {
181 cursor_->PrepareForBoundsChange(widget_); 181 cursor_->PrepareForBoundsChange(widget_);
182 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_)); 182 sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
183 cursor_->ConfineCursorToBounds(widget_, bounds_);
pkotwicz 2015/02/05 15:44:53 I would remove the early return in DriWindow::Conf
spang 2015/02/05 16:16:38 Hmm.. why wouldn't we update the cursor bounds ins
183 } 184 }
184 185
185 } // namespace ui 186 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698