• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
6 #define UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
7 
8 namespace ui {
9 
10 class MenuModelDelegate {
11  public:
12   // Invoked when an icon has been loaded from history.
13   virtual void OnIconChanged(int index) = 0;
14 
15   // Invoked after items in |MenuModel| have been removed and/or added,
16   // delegate should assume the entire contents of the model has changed.
OnMenuStructureChanged()17   virtual void OnMenuStructureChanged() {}
18 
19  protected:
~MenuModelDelegate()20   virtual ~MenuModelDelegate() {}
21 };
22 
23 }  // namespace ui
24 
25 #endif  // UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
26