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_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void ToggleFullscreen() override; | 57 void ToggleFullscreen() override; |
58 void Maximize() override; | 58 void Maximize() override; |
59 void Minimize() override; | 59 void Minimize() override; |
60 void Restore() override; | 60 void Restore() override; |
61 void SetCursor(ui::PlatformCursor cursor) override; | 61 void SetCursor(ui::PlatformCursor cursor) override; |
62 void MoveCursorTo(const gfx::Point& location) override; | 62 void MoveCursorTo(const gfx::Point& location) override; |
63 void ConfineCursorToBounds(const gfx::Rect& bounds) override; | 63 void ConfineCursorToBounds(const gfx::Rect& bounds) override; |
64 ui::PlatformImeController* GetPlatformImeController() override; | 64 ui::PlatformImeController* GetPlatformImeController() override; |
65 | 65 |
66 private: | 66 private: |
| 67 friend class PlatformWindowMusTest; |
| 68 |
67 void SetShowState(mus::mojom::ShowState show_state); | 69 void SetShowState(mus::mojom::ShowState show_state); |
68 | 70 |
69 // mus::WindowObserver: | 71 // mus::WindowObserver: |
70 void OnWindowDestroyed(mus::Window* window) override; | 72 void OnWindowDestroyed(mus::Window* window) override; |
71 void OnWindowBoundsChanged(mus::Window* window, | 73 void OnWindowBoundsChanged(mus::Window* window, |
72 const gfx::Rect& old_bounds, | 74 const gfx::Rect& old_bounds, |
73 const gfx::Rect& new_bounds) override; | 75 const gfx::Rect& new_bounds) override; |
74 void OnWindowFocusChanged(mus::Window* gained_focus, | 76 void OnWindowFocusChanged(mus::Window* gained_focus, |
75 mus::Window* lost_focus) override; | 77 mus::Window* lost_focus) override; |
76 void OnWindowPredefinedCursorChanged(mus::Window* window, | 78 void OnWindowPredefinedCursorChanged(mus::Window* window, |
(...skipping 25 matching lines...) Expand all Loading... |
102 #ifndef NDEBUG | 104 #ifndef NDEBUG |
103 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; | 105 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; |
104 #endif | 106 #endif |
105 | 107 |
106 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); | 108 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); |
107 }; | 109 }; |
108 | 110 |
109 } // namespace views | 111 } // namespace views |
110 | 112 |
111 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 113 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
OLD | NEW |