Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: services/ui/demo/mus_demo.h

Issue 2301353003: Changes ownership of WindowTreeClient (Closed)
Patch Set: fix navigation Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/navigation/view_impl.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.h
diff --git a/services/ui/demo/mus_demo.h b/services/ui/demo/mus_demo.h
index 192007586cb23a92fa7815f00773da841bc47c47..3af714f0c1f1e0828702b9f68844d5f9d66c8266 100644
--- a/services/ui/demo/mus_demo.h
+++ b/services/ui/demo/mus_demo.h
@@ -43,7 +43,8 @@ class MusDemo : public shell::Service,
// WindowTreeClientDelegate:
void OnEmbed(Window* root) override;
- void OnDidDestroyClient(WindowTreeClient* client) override;
+ void OnEmbedRootDestroyed(Window* root) override;
+ void OnLostConnection(WindowTreeClient* client) override;
void OnPointerEventObserved(const PointerEvent& event,
Window* target) override;
@@ -72,11 +73,11 @@ class MusDemo : public shell::Service,
void DrawFrame();
Window* window_ = nullptr;
- WindowTreeClient* window_tree_client_ = nullptr;
+ std::unique_ptr<WindowTreeClient> window_tree_client_;
std::unique_ptr<GpuService> gpu_service_;
// Used to send frames to mus.
- std::unique_ptr<ui::BitmapUploader> uploader_;
+ std::unique_ptr<BitmapUploader> uploader_;
// Bitmap that is the same size as our client window area.
SkBitmap bitmap_;
« no previous file with comments | « services/navigation/view_impl.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698