summaryrefslogtreecommitdiffstats
path: root/components/omnibox/browser/omnibox_popup_model_observer.h
blob: 1a2e8edc0fd7b57d47ae4c0dc5348f337ac2827c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2013 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 COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_MODEL_OBSERVER_H_
#define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_MODEL_OBSERVER_H_

// Allows observers to react and update accordingly when state of
// |OmniboxPopupModel| changes, e.g. when the omnibox popup is shown or hidden.
class OmniboxPopupModelObserver {
 public:
  // Informs observers that omnibox popup has been shown or hidden.
  virtual void OnOmniboxPopupShownOrHidden() = 0;
};

#endif  // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_POPUP_MODEL_OBSERVER_H_