summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/search/instant_overlay_controller.h
blob: 0606ff5670f78d5b8f6b32c22291f2fc72a6bd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_CONTROLLER_H_
#define CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_CONTROLLER_H_

#include "base/compiler_specific.h"
#include "chrome/browser/ui/search/instant_overlay_model_observer.h"

class Browser;
class InstantOverlayModel;

// Abstract base class for platform-specific Instant overlay controllers.
class InstantOverlayController : public InstantOverlayModelObserver {
 protected:
  explicit InstantOverlayController(Browser* browser);
  virtual ~InstantOverlayController();

  Browser* const browser_;

 private:
  // Overridden from InstantOverlayModelObserver:
  virtual void OverlayStateChanged(
      const InstantOverlayModel& model) OVERRIDE = 0;
};

#endif  // CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_CONTROLLER_H_