Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1643)

Unified Diff: chrome/browser/gtk/back_forward_menu_model_gtk.h

Issue 501168: Make back forward menu model a MenuModel.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/back_forward_menu_model_gtk.h
===================================================================
--- chrome/browser/gtk/back_forward_menu_model_gtk.h (revision 35347)
+++ chrome/browser/gtk/back_forward_menu_model_gtk.h (working copy)
@@ -1,42 +0,0 @@
-// 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 <string>
-
-#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();
- virtual bool AlwaysShowImages() const;
-
- private:
- BackForwardButtonGtk* button_;
-
- DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelGtk);
-};
-
-#endif // CHROME_BROWSER_GTK_BACK_FORWARD_MENU_MODEL_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698