summaryrefslogtreecommitdiffstats
path: root/chrome/browser/encoding_menu_controller.h
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-05-11 20:53:37 +0100
committerKristian Monsen <kristianm@google.com>2011-05-16 13:54:48 +0100
commit21d179b334e59e9a3bfcaed4c4430bef1bc5759d (patch)
tree64e2bb6da27af6a5c93ca34f6051584aafbfcb9e /chrome/browser/encoding_menu_controller.h
parent0c63f00edd6ed0482fd5cbcea937ca088baf7858 (diff)
downloadexternal_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.zip
external_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.tar.gz
external_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.tar.bz2
Merge Chromium at 10.0.621.0: Initial merge by git.
Change-Id: I070cc91c608dfa4a968a5a54c173260765ac8097
Diffstat (limited to 'chrome/browser/encoding_menu_controller.h')
-rw-r--r--chrome/browser/encoding_menu_controller.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/chrome/browser/encoding_menu_controller.h b/chrome/browser/encoding_menu_controller.h
deleted file mode 100644
index fc907f8..0000000
--- a/chrome/browser/encoding_menu_controller.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_ENCODING_MENU_CONTROLLER_H_
-#define CHROME_BROWSER_ENCODING_MENU_CONTROLLER_H_
-#pragma once
-
-#include <utility>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h" // For DISALLOW_COPY_AND_ASSIGN
-#include "base/gtest_prod_util.h"
-#include "base/string16.h"
-
-class Profile;
-
-// Cross-platform logic needed for the encoding menu.
-// For now, we don't need to track state so all methods are static.
-class EncodingMenuController {
- FRIEND_TEST_ALL_PREFIXES(EncodingMenuControllerTest, EncodingIDsBelongTest);
- FRIEND_TEST_ALL_PREFIXES(EncodingMenuControllerTest, IsItemChecked);
-
- public:
- typedef std::pair<int, string16> EncodingMenuItem;
- typedef std::vector<EncodingMenuItem> EncodingMenuItemList;
-
- public:
- EncodingMenuController() {}
-
- // Given a command ID, does this command belong to the encoding menu?
- bool DoesCommandBelongToEncodingMenu(int id);
-
- // Returns true if the given encoding menu item (specified by item_id)
- // is checked. Note that this header is included from objc, where the name
- // "id" is reserved.
- bool IsItemChecked(Profile* browser_profile,
- const std::string& current_tab_encoding,
- int item_id);
-
- // Fills in a list of menu items in the order they should appear in the menu.
- // Items whose ids are 0 are separators.
- void GetEncodingMenuItems(Profile* profile,
- EncodingMenuItemList* menuItems);
-
- private:
- // List of all valid encoding GUI IDs.
- static const int kValidEncodingIds[];
- const int* ValidGUIEncodingIDs();
- int NumValidGUIEncodingIDs();
-
- DISALLOW_COPY_AND_ASSIGN(EncodingMenuController);
-};
-
-#endif // CHROME_BROWSER_ENCODING_MENU_CONTROLLER_H_