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

Unified Diff: services/ui/launcher/launch_instance.h

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Moved launching/registering of view associates to launcher Created 4 years, 7 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: services/ui/launcher/launch_instance.h
diff --git a/services/ui/launcher/launch_instance.h b/services/ui/launcher/launch_instance.h
index 644f31dbb817a44cc35e0c8f5f037bbbdb9eeb69..c4510e9be120c771d6742b88f9e89f27d0251f04 100644
--- a/services/ui/launcher/launch_instance.h
+++ b/services/ui/launcher/launch_instance.h
@@ -20,7 +20,8 @@ namespace launcher {
class LauncherViewTree;
-class LaunchInstance : public mojo::NativeViewportEventDispatcher {
+class LaunchInstance : public mojo::NativeViewportEventDispatcher,
+ public mojo::ui::ViewAssociateWatcher {
public:
LaunchInstance(mojo::ApplicationImpl* app_impl,
const std::string& app_url,
@@ -29,6 +30,11 @@ class LaunchInstance : public mojo::NativeViewportEventDispatcher {
void Launch();
+ // |ViewAssociateWatcher|
+ void OnViewAssociateConnectionError(
+ const mojo::String& label,
+ const OnViewAssociateConnectionErrorCallback& callback) override;
+
private:
// |NativeViewportEventDispatcher|:
void OnEvent(mojo::EventPtr event,

Powered by Google App Engine
This is Rietveld 408576698