| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; | 53 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; |
| 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 OnWmPerformMoveLoop(Window* window, | 64 void OnWmPerformMoveLoop(Window* window, |
| 64 mojom::MoveLoopSource source, | 65 mojom::MoveLoopSource source, |
| 65 const gfx::Point& cursor_location, | 66 const gfx::Point& cursor_location, |
| 66 const base::Callback<void(bool)>& on_done) override; | 67 const base::Callback<void(bool)>& on_done) override; |
| 67 void OnWmCancelMoveLoop(Window* window) override; | 68 void OnWmCancelMoveLoop(Window* window) override; |
| 68 | 69 |
| 69 // Allocate a bitmap the same size as the window to draw into. | 70 // Allocate a bitmap the same size as the window to draw into. |
| 70 void AllocBitmap(); | 71 void AllocBitmap(); |
| 71 | 72 |
| 72 // Draws one frame, incrementing the rotation angle. | 73 // Draws one frame, incrementing the rotation angle. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 88 // Current rotation angle for drawing. | 89 // Current rotation angle for drawing. |
| 89 double angle_ = 0.0; | 90 double angle_ = 0.0; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 92 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace demo | 95 } // namespace demo |
| 95 } // namespace ui | 96 } // namespace ui |
| 96 | 97 |
| 97 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 98 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
| OLD | NEW |