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

Unified Diff: mojo/services/view_manager/public/cpp/view_manager_delegate.h

Issue 954273002: Routes WindowManager functionality through the view manager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: mojo/services/view_manager/public/cpp/view_manager_delegate.h
diff --git a/mojo/services/view_manager/public/cpp/view_manager_delegate.h b/mojo/services/view_manager/public/cpp/view_manager_delegate.h
index e78e9250e264aecfcec6e5b98e837008f3c9a571..be3db2412040135a1679ecf44911a1f4addde801 100644
--- a/mojo/services/view_manager/public/cpp/view_manager_delegate.h
+++ b/mojo/services/view_manager/public/cpp/view_manager_delegate.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_
#define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_DELEGATE_H_
+#include <string>
+
#include "mojo/public/interfaces/application/service_provider.mojom.h"
namespace mojo {
@@ -37,6 +39,10 @@ class ViewManagerDelegate {
// |view_manager| is not valid after this function returns.
virtual void OnViewManagerDisconnected(ViewManager* view_manager) = 0;
+ // Asks the delegate to perform the specified action.
+ // TODO(sky): nuke! See comments in view_manager.mojom for details.n
msw 2015/02/25 22:29:30 nit: remove trailing 'n'
sky 2015/02/25 23:20:26 Done.
+ virtual void OnPerformAction(View* view, const std::string& action) {}
+
protected:
virtual ~ViewManagerDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698