Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8577)

Unified Diff: chrome/browser/ui/intents/web_intent_picker_model_observer.h

Issue 9148032: [Web Intents] Refactor picker to use WebIntentPickerModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: groby's fix Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..0be08b17509349e8cf66da1dd4ec5a38dc52f9dc
--- /dev/null
+++ b/chrome/browser/ui/intents/web_intent_picker_model_observer.h
@@ -0,0 +1,26 @@
+// 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 when |model| has changed.
+ virtual void OnModelChanged(WebIntentPickerModel* model) = 0;
+
+ // Called when the favicon at |index| in |model| has changed.
+ virtual void OnFaviconChanged(WebIntentPickerModel* model, size_t index) = 0;
+
+ // Called when 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_
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_model.cc ('k') | chrome/browser/ui/intents/web_intent_picker_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698