summaryrefslogtreecommitdiffstats
path: root/chrome/browser/encoding_menu_controller_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/encoding_menu_controller_delegate.h')
-rw-r--r--chrome/browser/encoding_menu_controller_delegate.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/chrome/browser/encoding_menu_controller_delegate.h b/chrome/browser/encoding_menu_controller_delegate.h
index b052fc8a..e69de29 100644
--- a/chrome/browser/encoding_menu_controller_delegate.h
+++ b/chrome/browser/encoding_menu_controller_delegate.h
@@ -1,39 +0,0 @@
-// Copyright (c) 2006-2008 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 CHORME_BROWSER_ENCODING_MENU_CONTROLLER_DELEGATE_H__
-#define CHORME_BROWSER_ENCODING_MENU_CONTROLLER_DELEGATE_H__
-
-#include "base/basictypes.h" // For DISALLOW_IMPLICIT_CONSTRUCTORS
-#include "views/controls/menu/menu.h"
-
-class Browser;
-class Controller;
-class Profile;
-
-// Encapsulates logic about populating the encoding menu and making
-// sure the correct items are checked.
-class EncodingMenuControllerDelegate : public views::Menu::Delegate {
- public:
- explicit EncodingMenuControllerDelegate(Browser* browser);
-
- // Overridden from Menu::Delegate:
- virtual bool IsItemChecked(int id) const;
- virtual bool SupportsCommand(int id) const;
- virtual bool IsCommandEnabled(int id) const;
- virtual bool GetContextualLabel(int id, std::wstring* out) const;
- virtual void ExecuteCommand(int id);
-
- // Builds the encoding menu in the passed in |encoding_menu|. This
- // is used in both the simple frame menu and in the page menu in the
- // toolbar. (And probably elsewhere in the future, hence the
- // dedicated delegate).
- static void BuildEncodingMenu(Profile* profile, views::Menu* encoding_menu);
-
- private:
- Browser* browser_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(EncodingMenuControllerDelegate);
-};
-
-#endif // CHORME_BROWSER_ENCODING_MENU_CONTROLLER_DELEGATE_H__