| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "components/mus/public/cpp/window.h" | 16 #include "components/mus/public/cpp/window.h" |
| 17 #include "components/mus/public/cpp/window_manager_delegate.h" | 17 #include "components/mus/public/cpp/window_manager_delegate.h" |
| 18 #include "components/mus/public/cpp/window_tree_delegate.h" | 18 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 19 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 19 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 20 #include "mojo/public/cpp/bindings/binding_set.h" | 20 #include "mojo/public/cpp/bindings/binding_set.h" |
| 21 #include "mojo/shell/public/cpp/connector.h" | 21 #include "services/shell/public/cpp/connector.h" |
| 22 #include "mojo/shell/public/cpp/shell_client.h" | 22 #include "services/shell/public/cpp/shell_client.h" |
| 23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 24 | 24 |
| 25 namespace bitmap_uploader { | 25 namespace bitmap_uploader { |
| 26 class BitmapUploader; | 26 class BitmapUploader; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace mus_demo { | 29 namespace mus_demo { |
| 30 | 30 |
| 31 // A simple MUS Demo mojo app. This app connects to the mojo:mus, creates a new | 31 // A simple MUS Demo mojo app. This app connects to the mojo:mus, creates a new |
| 32 // window and draws a spinning square in the center of the window. Provides a | 32 // window and draws a spinning square in the center of the window. Provides a |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Current rotation angle for drawing. | 83 // Current rotation angle for drawing. |
| 84 double angle_ = 0.0; | 84 double angle_ = 0.0; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 86 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace mus_demo | 89 } // namespace mus_demo |
| 90 | 90 |
| 91 #endif // COMPONENTS_MUS_DEMO_MUS_DEMO_H_ | 91 #endif // COMPONENTS_MUS_DEMO_MUS_DEMO_H_ |
| OLD | NEW |