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() {} |
}; |