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