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/drm/host/drm_window_host.h" | 5 #include "ui/ozone/platform/drm/host/drm_window_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ui/display/display.h" | 8 #include "ui/display/display.h" |
9 #include "ui/events/devices/device_data_manager.h" | 9 #include "ui/events/devices/device_data_manager.h" |
10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 void DrmWindowHost::Show() { | 68 void DrmWindowHost::Show() { |
69 } | 69 } |
70 | 70 |
71 void DrmWindowHost::Hide() { | 71 void DrmWindowHost::Hide() { |
72 } | 72 } |
73 | 73 |
74 void DrmWindowHost::Close() { | 74 void DrmWindowHost::Close() { |
75 } | 75 } |
76 | 76 |
| 77 void DrmWindowHost::PrepareForShutdown() {} |
| 78 |
77 void DrmWindowHost::SetBounds(const gfx::Rect& bounds) { | 79 void DrmWindowHost::SetBounds(const gfx::Rect& bounds) { |
78 bounds_ = bounds; | 80 bounds_ = bounds; |
79 delegate_->OnBoundsChanged(bounds); | 81 delegate_->OnBoundsChanged(bounds); |
80 SendBoundsChange(); | 82 SendBoundsChange(); |
81 } | 83 } |
82 | 84 |
83 gfx::Rect DrmWindowHost::GetBounds() { | 85 gfx::Rect DrmWindowHost::GetBounds() { |
84 return bounds_; | 86 return bounds_; |
85 } | 87 } |
86 | 88 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void DrmWindowHost::SendBoundsChange() { | 200 void DrmWindowHost::SendBoundsChange() { |
199 // Update the cursor before the window so that the cursor stays within the | 201 // Update the cursor before the window so that the cursor stays within the |
200 // window bounds when the window size shrinks. | 202 // window bounds when the window size shrinks. |
201 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds()); | 203 cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds()); |
202 sender_->GpuWindowBoundsChanged(widget_, bounds_); | 204 sender_->GpuWindowBoundsChanged(widget_, bounds_); |
203 | 205 |
204 overlay_manager_->ResetCache(); | 206 overlay_manager_->ResetCache(); |
205 } | 207 } |
206 | 208 |
207 } // namespace ui | 209 } // namespace ui |
OLD | NEW |