blob: 29eb15060a5ab204ab50786c0128577df0b53490 [file] [log] [blame]
// Copyright (c) 2010 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.
namespace ui {
class MenuModelDelegate {
// Invoked when an icon has been loaded from history. The |command_id|
// may be part of a submenu, which is why we use command id here rather
// than index.
virtual void OnIconChanged(int command_id) = 0;
// Invoked after items in |MenuModel| have been removed and/or added,
// delegate should assume the entire contents of the model has changed.
virtual void OnMenuStructureChanged() {}
// Invoked when |MenuModel| is clearing its current delegate field. This
// indicates to |this| that it is not that MenuModel's delegate anymore.
virtual void OnMenuClearingDelegate() {}
virtual ~MenuModelDelegate() = default;
} // namespace ui