blob: 0704b986bc44c29864fa8e386829fb43b28633e2 (
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
36
37
38
39
|
// Copyright (c) 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_GTK_BACK_FORWARD_MENU_MODEL_GTK_H_
#define CHROME_BROWSER_GTK_BACK_FORWARD_MENU_MODEL_GTK_H_
#include "base/basictypes.h"
#include "chrome/browser/back_forward_menu_model.h"
#include "chrome/browser/gtk/menu_gtk.h"
class BackForwardButtonGtk;
// For the most part, this class simply passes calls through to
// the BackForwardMenuModel.
class BackForwardMenuModelGtk : public BackForwardMenuModel,
public MenuGtk::Delegate {
public:
BackForwardMenuModelGtk(Browser* browser, ModelType model_type,
BackForwardButtonGtk* button);
// MenuGtk::Delegate
virtual int GetItemCount() const;
virtual bool IsItemSeparator(int menu_id) const;
virtual std::string GetLabel(int menu_id) const;
virtual bool HasIcon(int menu_id) const;
virtual const SkBitmap* GetIcon(int menu_id) const;
virtual bool IsCommandEnabled(int command_id) const;
virtual void ExecuteCommand(int command_id);
virtual void StoppedShowing();
private:
BackForwardButtonGtk* button_;
DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelGtk);
};
#endif // CHROME_BROWSER_GTK_BACK_FORWARD_MENU_MODEL_GTK_H_
|