summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/search/instant_overlay_model_observer.h
diff options
context:
space:
mode:
authorsamarth@chromium.org <samarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-17 22:44:47 +0000
committersamarth@chromium.org <samarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-17 22:44:47 +0000
commit03bb71001fa5ec1a6fca64c8461b8df6d81c993d (patch)
treeb698fbe506698d087d5dfbe7a6a7d6c8952ad6be /chrome/browser/ui/search/instant_overlay_model_observer.h
parent373c09e1076f3a77e61ef46c97b4a01b74965049 (diff)
downloadchromium_src-03bb71001fa5ec1a6fca64c8461b8df6d81c993d.zip
chromium_src-03bb71001fa5ec1a6fca64c8461b8df6d81c993d.tar.gz
chromium_src-03bb71001fa5ec1a6fca64c8461b8df6d81c993d.tar.bz2
Move desktop-specific Instant bits to c/b/ui/search.
This is part 2 of the cleanup described in the attached bug. Also, added sreeram to c/b/ui/search/OWNERS and dhollowa to c/b/instant/OWNERS. BUG=179184 Review URL: https://chromiumcodereview.appspot.com/12520005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/search/instant_overlay_model_observer.h')
-rw-r--r--chrome/browser/ui/search/instant_overlay_model_observer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/ui/search/instant_overlay_model_observer.h b/chrome/browser/ui/search/instant_overlay_model_observer.h
new file mode 100644
index 0000000..a3cb113
--- /dev/null
+++ b/chrome/browser/ui/search/instant_overlay_model_observer.h
@@ -0,0 +1,21 @@
+// Copyright 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_SEARCH_INSTANT_OVERLAY_MODEL_OBSERVER_H_
+#define CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_MODEL_OBSERVER_H_
+
+class InstantOverlayModel;
+
+// This class defines the observer interface for the InstantOverlayModel.
+class InstantOverlayModelObserver {
+ public:
+ // Informs the observer that the overlay state has changed. This can mean
+ // either the model state changed or the contents of the overlay changed.
+ virtual void OverlayStateChanged(const InstantOverlayModel& model) = 0;
+
+ protected:
+ ~InstantOverlayModelObserver() {}
+};
+
+#endif // CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_MODEL_OBSERVER_H_