| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/ozone/common/platform_window_base.h" |
| 6 #include "ui/ozone/public/cursor_factory_ozone.h" |
| 7 #include "ui/ozone/public/event_factory_ozone.h" |
| 8 #include "ui/ozone/public/surface_factory_ozone.h" |
| 9 #include "ui/platform_window/platform_window_delegate.h" |
| 10 |
| 11 namespace ui { |
| 12 |
| 13 PlatformWindowBase::PlatformWindowBase() { |
| 14 } |
| 15 |
| 16 PlatformWindowBase::~PlatformWindowBase() { |
| 17 } |
| 18 |
| 19 void PlatformWindowBase::Show() { |
| 20 } |
| 21 |
| 22 void PlatformWindowBase::Hide() { |
| 23 } |
| 24 |
| 25 void PlatformWindowBase::Close() { |
| 26 } |
| 27 |
| 28 void PlatformWindowBase::SetCapture() { |
| 29 } |
| 30 |
| 31 void PlatformWindowBase::ReleaseCapture() { |
| 32 } |
| 33 |
| 34 void PlatformWindowBase::ToggleFullscreen() { |
| 35 } |
| 36 |
| 37 void PlatformWindowBase::Maximize() { |
| 38 } |
| 39 |
| 40 void PlatformWindowBase::Minimize() { |
| 41 } |
| 42 |
| 43 void PlatformWindowBase::Restore() { |
| 44 } |
| 45 |
| 46 PlatformWindowCompat::PlatformWindowCompat(PlatformWindowDelegate* delegate, |
| 47 const gfx::Rect& bounds) |
| 48 : delegate_(delegate), bounds_(bounds) { |
| 49 delegate_->OnAcceleratedWidgetAvailable( |
| 50 SurfaceFactoryOzone::GetInstance()->GetAcceleratedWidget()); |
| 51 } |
| 52 |
| 53 PlatformWindowCompat::~PlatformWindowCompat() { |
| 54 } |
| 55 |
| 56 gfx::Rect PlatformWindowCompat::GetBounds() { |
| 57 return bounds_; |
| 58 } |
| 59 |
| 60 void PlatformWindowCompat::SetBounds(const gfx::Rect& bounds) { |
| 61 bounds_ = bounds; |
| 62 delegate_->OnBoundsChanged(bounds); |
| 63 } |
| 64 |
| 65 } // namespace ui |
| OLD | NEW |