Index: chrome/browser/ui/intents/web_intent_picker_delegate.h |
diff --git a/chrome/browser/ui/intents/web_intent_picker_delegate.h b/chrome/browser/ui/intents/web_intent_picker_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e540e62275a4db8014a2cf2fdad12a21ef5fe9fd |
--- /dev/null |
+++ b/chrome/browser/ui/intents/web_intent_picker_delegate.h |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ |
+#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ |
+#pragma once |
+ |
+// A class used to notify the delegate when the user has chosen a web intent |
+// service. |
+class WebIntentPickerDelegate { |
+ public: |
+ // Callback called when the user has chosen a service. |
+ virtual void OnServiceChosen(size_t index) = 0; |
+ |
+ // Callback called when the user cancels out of the dialog. |
+ virtual void OnCancelled() = 0; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ |