| 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 23 matching lines...) Expand all Loading... |
| 34 ~MusDemo() override; | 34 ~MusDemo() override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // shell::Service: | 37 // shell::Service: |
| 38 void OnStart(const shell::Identity& identity) override; | 38 void OnStart(const shell::Identity& identity) override; |
| 39 bool OnConnect(shell::Connection* connection) override; | 39 bool OnConnect(shell::Connection* connection) override; |
| 40 | 40 |
| 41 // WindowTreeClientDelegate: | 41 // WindowTreeClientDelegate: |
| 42 void OnEmbed(Window* root) override; | 42 void OnEmbed(Window* root) override; |
| 43 void OnDidDestroyClient(WindowTreeClient* client) override; | 43 void OnDidDestroyClient(WindowTreeClient* client) override; |
| 44 void OnEventObserved(const Event& event, Window* target) override; | 44 void OnPointerWatcherEvent(const PointerEvent& event, |
| 45 Window* target) override; |
| 45 | 46 |
| 46 // WindowManagerDelegate: | 47 // WindowManagerDelegate: |
| 47 void SetWindowManagerClient(WindowManagerClient* client) override; | 48 void SetWindowManagerClient(WindowManagerClient* client) override; |
| 48 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; | 49 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; |
| 49 bool OnWmSetProperty( | 50 bool OnWmSetProperty( |
| 50 Window* window, | 51 Window* window, |
| 51 const std::string& name, | 52 const std::string& name, |
| 52 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 53 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
| 53 Window* OnWmCreateTopLevelWindow( | 54 Window* OnWmCreateTopLevelWindow( |
| 54 std::map<std::string, std::vector<uint8_t>>* properties) override; | 55 std::map<std::string, std::vector<uint8_t>>* properties) override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 82 // Current rotation angle for drawing. | 83 // Current rotation angle for drawing. |
| 83 double angle_ = 0.0; | 84 double angle_ = 0.0; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 86 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace demo | 89 } // namespace demo |
| 89 } // namespace ui | 90 } // namespace ui |
| 90 | 91 |
| 91 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 92 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
| OLD | NEW |