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 UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ |
6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
11 #include "ui/platform_window/platform_window.h" | 11 #include "ui/platform_window/platform_window.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
| 15 class PlatformWindowDelegate; |
| 16 |
15 class PlatformWindowCast : public PlatformWindow { | 17 class PlatformWindowCast : public PlatformWindow { |
16 public: | 18 public: |
17 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); | 19 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); |
18 ~PlatformWindowCast() override {} | 20 ~PlatformWindowCast() override {} |
19 | 21 |
20 // PlatformWindow implementation: | 22 // PlatformWindow implementation: |
21 gfx::Rect GetBounds() override; | 23 gfx::Rect GetBounds() override; |
22 void SetBounds(const gfx::Rect& bounds) override; | 24 void SetBounds(const gfx::Rect& bounds) override; |
23 void SetTitle(const base::string16& title) override; | 25 void SetTitle(const base::string16& title) override; |
24 void Show() override {} | 26 void Show() override {} |
(...skipping 14 matching lines...) Expand all Loading... |
39 PlatformWindowDelegate* delegate_; | 41 PlatformWindowDelegate* delegate_; |
40 gfx::Rect bounds_; | 42 gfx::Rect bounds_; |
41 gfx::AcceleratedWidget widget_; | 43 gfx::AcceleratedWidget widget_; |
42 | 44 |
43 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast); | 45 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast); |
44 }; | 46 }; |
45 | 47 |
46 } // namespace ui | 48 } // namespace ui |
47 | 49 |
48 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ | 50 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ |
OLD | NEW |