| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 // A class used to notify the delegate when the user has chosen a web intent | |
| 10 // service. | |
| 11 class WebIntentPickerDelegate { | |
| 12 public: | |
| 13 // Callback called when the user has chosen a service. | |
| 14 virtual void OnServiceChosen(size_t index) = 0; | |
| 15 | |
| 16 // Callback called when the user cancels out of the dialog. | |
| 17 virtual void OnCancelled() = 0; | |
| 18 }; | |
| 19 | |
| 20 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_ | |
| OLD | NEW |