Index: third_party/mojo_services/src/view_manager/public/cpp/view_manager_delegate.h |
diff --git a/third_party/mojo_services/src/view_manager/public/cpp/view_manager_delegate.h b/third_party/mojo_services/src/view_manager/public/cpp/view_manager_delegate.h |
index e78e9250e264aecfcec6e5b98e837008f3c9a571..1590a591842173bd8ce696f5dac327e74446131b 100644 |
--- a/third_party/mojo_services/src/view_manager/public/cpp/view_manager_delegate.h |
+++ b/third_party/mojo_services/src/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. |
+ virtual bool OnPerformAction(View* view, const std::string& action); |
+ |
protected: |
virtual ~ViewManagerDelegate() {} |
}; |