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

Unified Diff: chrome/browser/ui/omnibox/omnibox_popup_model.h

Issue 18859004: views impl: hide top infobar arrow when omnibox popup shows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct previous comment Created 7 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/omnibox_popup_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_popup_model.h
diff --git a/chrome/browser/ui/omnibox/omnibox_popup_model.h b/chrome/browser/ui/omnibox/omnibox_popup_model.h
index 85934b46e522852b7fb80239db4fbcb1366d0697..02de7adb62ca3fd744fc4ab3ef184e79212f5300 100644
--- a/chrome/browser/ui/omnibox/omnibox_popup_model.h
+++ b/chrome/browser/ui/omnibox/omnibox_popup_model.h
@@ -6,10 +6,12 @@
#define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MODEL_H_
#include "base/basictypes.h"
+#include "base/observer_list.h"
#include "chrome/browser/autocomplete/autocomplete_controller.h"
#include "chrome/browser/autocomplete/autocomplete_result.h"
#include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
+class OmniboxPopupModelObserver;
class OmniboxPopupView;
namespace gfx {
@@ -96,6 +98,10 @@ class OmniboxPopupModel {
// changes.
void OnResultChanged();
+ // Add and remove observers.
+ void AddObserver(OmniboxPopupModelObserver* observer);
+ void RemoveObserver(OmniboxPopupModelObserver* observer);
+
// The token value for selected_line_, hover_line_ and functions dealing with
// a "line number" that indicates "no line".
static const size_t kNoMatch;
@@ -121,6 +127,9 @@ class OmniboxPopupModel {
// The match the user has manually chosen, if any.
AutocompleteResult::Selection manually_selected_match_;
+ // Observers.
+ ObserverList<OmniboxPopupModelObserver> observers_;
+
DISALLOW_COPY_AND_ASSIGN(OmniboxPopupModel);
};
« no previous file with comments | « no previous file | chrome/browser/ui/omnibox/omnibox_popup_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698