OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_DEMO_MUS_DEMO_H_ | 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_ |
6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ | 6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool OnWmSetProperty( | 54 bool OnWmSetProperty( |
55 Window* window, | 55 Window* window, |
56 const std::string& name, | 56 const std::string& name, |
57 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 57 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
58 Window* OnWmCreateTopLevelWindow( | 58 Window* OnWmCreateTopLevelWindow( |
59 std::map<std::string, std::vector<uint8_t>>* properties) override; | 59 std::map<std::string, std::vector<uint8_t>>* properties) override; |
60 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, | 60 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, |
61 bool janky) override; | 61 bool janky) override; |
62 void OnWmNewDisplay(Window* window, const display::Display& display) override; | 62 void OnWmNewDisplay(Window* window, const display::Display& display) override; |
63 void OnWmDisplayRemoved(ui::Window* window) override; | 63 void OnWmDisplayRemoved(ui::Window* window) override; |
| 64 void OnWmDisplayModified(const display::Display& display) override; |
64 void OnWmPerformMoveLoop(Window* window, | 65 void OnWmPerformMoveLoop(Window* window, |
65 mojom::MoveLoopSource source, | 66 mojom::MoveLoopSource source, |
66 const gfx::Point& cursor_location, | 67 const gfx::Point& cursor_location, |
67 const base::Callback<void(bool)>& on_done) override; | 68 const base::Callback<void(bool)>& on_done) override; |
68 void OnWmCancelMoveLoop(Window* window) override; | 69 void OnWmCancelMoveLoop(Window* window) override; |
69 | 70 |
70 // Allocate a bitmap the same size as the window to draw into. | 71 // Allocate a bitmap the same size as the window to draw into. |
71 void AllocBitmap(); | 72 void AllocBitmap(); |
72 | 73 |
73 // Draws one frame, incrementing the rotation angle. | 74 // Draws one frame, incrementing the rotation angle. |
(...skipping 15 matching lines...) Expand all Loading... |
89 // Current rotation angle for drawing. | 90 // Current rotation angle for drawing. |
90 double angle_ = 0.0; | 91 double angle_ = 0.0; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 93 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace demo | 96 } // namespace demo |
96 } // namespace ui | 97 } // namespace ui |
97 | 98 |
98 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 99 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
OLD | NEW |