Index: services/ui/demo/mus_demo.h |
diff --git a/services/ui/demo/mus_demo.h b/services/ui/demo/mus_demo.h |
index c4e490b6ce599a79f2a5b331e684962ae9645540..692d48696ca56a7f0756efec3325ec7231369e9b 100644 |
--- a/services/ui/demo/mus_demo.h |
+++ b/services/ui/demo/mus_demo.h |
@@ -15,6 +15,7 @@ |
#include "base/macros.h" |
#include "base/timer/timer.h" |
#include "services/service_manager/public/cpp/service.h" |
+#include "services/ui/public/interfaces/window_tree_host.mojom.h" |
#include "ui/aura/mus/window_manager_delegate.h" |
#include "ui/aura/mus/window_tree_client_delegate.h" |
#include "ui/display/screen_base.h" |
@@ -28,10 +29,6 @@ class DefaultCaptureClient; |
} |
} // namespace aura |
-namespace aura_extra { |
-class ImageWindowDelegate; |
-} |
- |
namespace wm { |
class WMState; |
} |
@@ -98,12 +95,7 @@ class MusDemo : public service_manager::Service, |
bool IsWindowActive(aura::Window* window) override; |
void OnWmDeactivateWindow(aura::Window* window) override; |
- // Draws one frame, incrementing the rotation angle. |
- void DrawFrame(); |
- |
- aura::Window* root_window_ = nullptr; |
std::unique_ptr<aura::WindowTreeClient> window_tree_client_; |
- std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_; |
std::unique_ptr<aura::Env> env_; |
std::unique_ptr<display::ScreenBase> screen_; |
@@ -111,20 +103,11 @@ class MusDemo : public service_manager::Service, |
std::unique_ptr<::wm::WMState> wm_state_; |
std::unique_ptr<aura::PropertyConverter> property_converter_; |
- // Window to which we draw the bitmap. |
- std::unique_ptr<aura::Window> bitmap_window_; |
- |
- // Destroys itself when the window gets destroyed. |
- aura_extra::ImageWindowDelegate* window_delegate_ = nullptr; |
- |
- // Timer for calling DrawFrame(). |
- base::RepeatingTimer timer_; |
- |
- // Current rotation angle for drawing. |
- double angle_ = 0.0; |
+ class WindowTreeData; |
+ std::unique_ptr<WindowTreeData> window_tree_data_; |
- // Last time a frame was drawn. |
- base::TimeTicks last_draw_frame_time_; |
+ bool external_window_mode_; |
+ mojom::WindowTreeHostFactoryPtr window_tree_host_factory_; |
DISALLOW_COPY_AND_ASSIGN(MusDemo); |
}; |