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

Unified Diff: ash/touch_hud/mus/touch_hud_application.cc

Issue 2296763009: mash: Fix launching touch hud app in mash mode. (Closed)
Patch Set: 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
Index: ash/touch_hud/mus/touch_hud_application.cc
diff --git a/ash/touch_hud/mus/touch_hud_application.cc b/ash/touch_hud/mus/touch_hud_application.cc
index 702560b61d5014f2178068aa30d84772847484e4..40fec5a66ec97aece70659eb9a661dbb59cbd6d1 100644
--- a/ash/touch_hud/mus/touch_hud_application.cc
+++ b/ash/touch_hud/mus/touch_hud_application.cc
@@ -33,7 +33,7 @@ class TouchHudUI : public views::WidgetDelegateView,
: window_manager_connection_(window_manager_connection),
touch_hud_renderer_(new TouchHudRenderer(widget)) {
window_manager_connection_->pointer_watcher_event_router()
- ->AddPointerWatcher(this, false /* want_moves */);
+ ->AddPointerWatcher(this, true /* want_moves */);
}
~TouchHudUI() override {
window_manager_connection_->pointer_watcher_event_router()
@@ -62,7 +62,7 @@ class TouchHudUI : public views::WidgetDelegateView,
DISALLOW_COPY_AND_ASSIGN(TouchHudUI);
};
-TouchHudApplication::TouchHudApplication() : binding_(this) {}
+TouchHudApplication::TouchHudApplication() {}
TouchHudApplication::~TouchHudApplication() {}
void TouchHudApplication::OnStart(const shell::Identity& identity) {
@@ -108,7 +108,7 @@ void TouchHudApplication::Launch(uint32_t what, mash::mojom::LaunchMode how) {
void TouchHudApplication::Create(const shell::Identity& remote_identity,
mash::mojom::LaunchableRequest request) {
- binding_.Bind(std::move(request));
+ bindings_.AddBinding(this, std::move(request));
}
} // namespace touch_hud

Powered by Google App Engine
This is Rietveld 408576698