OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #ifndef CHROMECAST_PLATFORM_WINDOW_CHROMECAST_H_ |
| 6 #define CHROMECAST_PLATFORM_WINDOW_CHROMECAST_H_ |
| 7 |
| 8 #include "ui/gfx/geometry/rect.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/platform_window/platform_window.h" |
| 11 |
| 12 namespace chromecast { |
| 13 namespace ozone { |
| 14 |
| 15 class PlatformWindowChromecast : public ui::PlatformWindow { |
| 16 public: |
| 17 PlatformWindowChromecast(ui::PlatformWindowDelegate* delegate, |
| 18 const gfx::Rect& bounds); |
| 19 ~PlatformWindowChromecast() override {} |
| 20 |
| 21 // PlatformWindow implementation: |
| 22 gfx::Rect GetBounds() override; |
| 23 void SetBounds(const gfx::Rect& bounds) override; |
| 24 void Show() override {} |
| 25 void Hide() override {} |
| 26 void Close() override {} |
| 27 void SetCapture() override {} |
| 28 void ReleaseCapture() override {} |
| 29 void ToggleFullscreen() override {} |
| 30 void Maximize() override {} |
| 31 void Minimize() override {} |
| 32 void Restore() override {} |
| 33 void SetCursor(ui::PlatformCursor cursor) override {} |
| 34 void MoveCursorTo(const gfx::Point& location) override {} |
| 35 void ConfineCursorToBounds(const gfx::Rect& bounds) override {} |
| 36 |
| 37 private: |
| 38 ui::PlatformWindowDelegate* delegate_; |
| 39 gfx::Rect bounds_; |
| 40 gfx::AcceleratedWidget widget_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(PlatformWindowChromecast); |
| 43 }; |
| 44 |
| 45 } // namespace ozone |
| 46 } // namespace chromecast |
| 47 |
| 48 #endif // CHROMECAST_PLATFORM_WINDOW_CHROMECAST_H_ |
OLD | NEW |