| 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 COMPONENTS_MUS_DEMO_MUS_DEMO_H_ | 5 #ifndef COMPONENTS_MUS_DEMO_MUS_DEMO_H_ |
| 6 #define COMPONENTS_MUS_DEMO_MUS_DEMO_H_ | 6 #define COMPONENTS_MUS_DEMO_MUS_DEMO_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 mus::Window* window, | 53 mus::Window* window, |
| 54 const std::string& name, | 54 const std::string& name, |
| 55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
| 56 mus::Window* OnWmCreateTopLevelWindow( | 56 mus::Window* OnWmCreateTopLevelWindow( |
| 57 std::map<std::string, std::vector<uint8_t>>* properties) override; | 57 std::map<std::string, std::vector<uint8_t>>* properties) override; |
| 58 void OnWmClientJankinessChanged(const std::set<mus::Window*>& client_windows, | 58 void OnWmClientJankinessChanged(const std::set<mus::Window*>& client_windows, |
| 59 bool janky) override; | 59 bool janky) override; |
| 60 void OnWmNewDisplay(mus::Window* window, | 60 void OnWmNewDisplay(mus::Window* window, |
| 61 const display::Display& display) override; | 61 const display::Display& display) override; |
| 62 void OnAccelerator(uint32_t id, const ui::Event& event) override; | 62 void OnAccelerator(uint32_t id, const ui::Event& event) override; |
| 63 void OnWmPerformMoveLoop(uint32_t change_id, |
| 64 uint32_t window_id, |
| 65 const gfx::Point& cursor_location) override; |
| 66 void OnWmCancelMoveLoop(uint32_t window_id) override; |
| 63 | 67 |
| 64 // Allocate a bitmap the same size as the window to draw into. | 68 // Allocate a bitmap the same size as the window to draw into. |
| 65 void AllocBitmap(); | 69 void AllocBitmap(); |
| 66 | 70 |
| 67 // Draws one frame, incrementing the rotation angle. | 71 // Draws one frame, incrementing the rotation angle. |
| 68 void DrawFrame(); | 72 void DrawFrame(); |
| 69 | 73 |
| 70 shell::Connector* connector_ = nullptr; | 74 shell::Connector* connector_ = nullptr; |
| 71 | 75 |
| 72 mus::Window* window_ = nullptr; | 76 mus::Window* window_ = nullptr; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 83 | 87 |
| 84 // Current rotation angle for drawing. | 88 // Current rotation angle for drawing. |
| 85 double angle_ = 0.0; | 89 double angle_ = 0.0; |
| 86 | 90 |
| 87 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 91 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
| 88 }; | 92 }; |
| 89 | 93 |
| 90 } // namespace mus_demo | 94 } // namespace mus_demo |
| 91 | 95 |
| 92 #endif // COMPONENTS_MUS_DEMO_MUS_DEMO_H_ | 96 #endif // COMPONENTS_MUS_DEMO_MUS_DEMO_H_ |
| OLD | NEW |