Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / models / menu_model_delegate.h
blob53b9579eeb385e352f4ab72690d4bbb723e93d5b
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.
5 #ifndef UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
6 #define UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
8 namespace ui {
10 class MenuModelDelegate {
11 public:
12 // Invoked when an icon has been loaded from history.
13 virtual void OnIconChanged(int index) = 0;
15 // Invoked after items in |MenuModel| have been removed and/or added,
16 // delegate should assume the entire contents of the model has changed.
17 virtual void OnMenuStructureChanged() {}
19 protected:
20 virtual ~MenuModelDelegate() {}
23 } // namespace ui
25 #endif // UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_