| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 sender_->RemoveChannelObserver(this); | 65 sender_->RemoveChannelObserver(this); |
| 66 sender_->Send(new OzoneGpuMsg_DestroyWindowDelegate(widget_)); | 66 sender_->Send(new OzoneGpuMsg_DestroyWindowDelegate(widget_)); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void DriWindow::Initialize() { | 69 void DriWindow::Initialize() { |
| 70 sender_->AddChannelObserver(this); | 70 sender_->AddChannelObserver(this); |
| 71 delegate_->OnAcceleratedWidgetAvailable(widget_); | 71 delegate_->OnAcceleratedWidgetAvailable(widget_); |
| 72 PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this); | 72 PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this); |
| 73 } | 73 } |
| 74 | 74 |
| 75 gfx::AcceleratedWidget DriWindow::GetAcceleratedWidget() { |
| 76 return widget_; |
| 77 } |
| 78 |
| 75 void DriWindow::Show() {} | 79 void DriWindow::Show() {} |
| 76 | 80 |
| 77 void DriWindow::Hide() {} | 81 void DriWindow::Hide() {} |
| 78 | 82 |
| 79 void DriWindow::Close() {} | 83 void DriWindow::Close() {} |
| 80 | 84 |
| 81 void DriWindow::SetBounds(const gfx::Rect& bounds) { | 85 void DriWindow::SetBounds(const gfx::Rect& bounds) { |
| 82 bounds_ = bounds; | 86 bounds_ = bounds; |
| 83 delegate_->OnBoundsChanged(bounds); | 87 delegate_->OnBoundsChanged(bounds); |
| 84 | 88 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 169 |
| 166 DriCursor* dri_cursor = window_manager_->cursor(); | 170 DriCursor* dri_cursor = window_manager_->cursor(); |
| 167 if (dri_cursor->GetCursorWindow() == widget_) | 171 if (dri_cursor->GetCursorWindow() == widget_) |
| 168 dri_cursor->ShowCursor(); | 172 dri_cursor->ShowCursor(); |
| 169 } | 173 } |
| 170 | 174 |
| 171 void DriWindow::OnChannelDestroyed() { | 175 void DriWindow::OnChannelDestroyed() { |
| 172 } | 176 } |
| 173 | 177 |
| 174 } // namespace ui | 178 } // namespace ui |
| OLD | NEW |