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