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