Chromium Code Reviews| Index: chrome/browser/ui/intents/web_intent_picker_model_observer.h |
| diff --git a/chrome/browser/ui/intents/web_intent_picker_model_observer.h b/chrome/browser/ui/intents/web_intent_picker_model_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a6094ebf0383fa97ff94a99b9f466dabb98c63b5 |
| --- /dev/null |
| +++ b/chrome/browser/ui/intents/web_intent_picker_model_observer.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2012 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_MODEL_OBSERVER_H_ |
| +#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ |
| +#pragma once |
| + |
| +class WebIntentPickerModel; |
| + |
| +// Observer for changes to the WebIntentPickerModel. |
| +class WebIntentPickerModelObserver { |
| + public: |
| + virtual ~WebIntentPickerModelObserver() {} |
| + |
| + // Called to notify that |model| has changed. |
|
groby-ooo-7-16
2012/01/25 22:03:13
nit: Called to notify that -> Callback when
binji
2012/01/26 00:27:41
Done.
|
| + virtual void OnModelChanged(WebIntentPickerModel* model) = 0; |
| + |
| + // Called to notify that the favicon at |index| in |model| has changed. |
| + virtual void OnFaviconChanged(WebIntentPickerModel* model, size_t index) = 0; |
| + |
| + // Called to notify that the inline disposition should be displayed for |
| + // |model|. |
| + virtual void OnInlineDisposition(WebIntentPickerModel* model) = 0; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_ |