OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ |
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 | 10 |
| 11 class GURL; |
11 class WebIntentPickerModel; | 12 class WebIntentPickerModel; |
12 | 13 |
13 // Observer for changes to the WebIntentPickerModel. | 14 // Observer for changes to the WebIntentPickerModel. |
14 class WebIntentPickerModelObserver { | 15 class WebIntentPickerModelObserver { |
15 public: | 16 public: |
16 virtual ~WebIntentPickerModelObserver() {} | 17 virtual ~WebIntentPickerModelObserver() {} |
17 | 18 |
18 // Called when |model| has changed. | 19 // Called when |model| has changed. |
19 virtual void OnModelChanged(WebIntentPickerModel* model) = 0; | 20 virtual void OnModelChanged(WebIntentPickerModel* model) = 0; |
20 | 21 |
21 // Called when the favicon at |index| in |model| has changed. | 22 // Called when the favicon at |index| in |model| has changed. |
22 virtual void OnFaviconChanged(WebIntentPickerModel* model, size_t index) = 0; | 23 virtual void OnFaviconChanged(WebIntentPickerModel* model, size_t index) = 0; |
23 | 24 |
24 // Called when the extension with |extension_id| has its icon changed. | 25 // Called when the extension with |extension_id| has its icon changed. |
25 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, | 26 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, |
26 const string16& extension_id) = 0; | 27 const string16& extension_id) = 0; |
27 | 28 |
28 // Called when the inline disposition should be displayed for |model|. | 29 // Called when the inline disposition should be displayed for |model|. |
29 virtual void OnInlineDisposition(WebIntentPickerModel* model) = 0; | 30 virtual void OnInlineDisposition(WebIntentPickerModel* model, |
| 31 const GURL& url) = 0; |
30 }; | 32 }; |
31 | 33 |
32 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ | 34 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ |
OLD | NEW |