blob: ed308dff4f55bfa512e1cb76e7013fb5bfd433f1 (
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
29
30
31
32
33
34
35
|
// Copyright (c) 2006-2009 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_BACK_FORWARD_MENU_MODEL_WIN_H_
#define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_WIN_H_
#include "base/basictypes.h"
#include "chrome/browser/back_forward_menu_model.h"
#include "views/controls/menu/menu.h"
class SkBitmap;
class BackForwardMenuModelWin : public BackForwardMenuModel,
public views::Menu::Delegate {
public:
BackForwardMenuModelWin(Browser* browser, ModelType model_type);
// Menu::Delegate
virtual std::wstring GetLabel(int menu_id) const;
virtual const SkBitmap& GetIcon(int menu_id) const;
virtual bool SupportsCommand(int menu_id) const;
virtual bool IsCommandEnabled(int menu_id) const;
virtual bool IsItemSeparator(int menu_id) const;
virtual bool HasIcon(int menu_id) const;
virtual void ExecuteCommand(int menu_id);
virtual void MenuWillShow();
virtual int GetItemCount() const;
private:
DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelWin);
};
#endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_WIN_H_
|