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

Unified Diff: chrome/browser/ui/toolbar/encoding_menu_controller.h

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 months 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/ui/toolbar/encoding_menu_controller.h
diff --git a/chrome/browser/ui/toolbar/encoding_menu_controller.h b/chrome/browser/ui/toolbar/encoding_menu_controller.h
deleted file mode 100644
index 96d62fa5a04ae40986511fc374f8e54c7470bdef..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/toolbar/encoding_menu_controller.h
+++ /dev/null
@@ -1,55 +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_UI_TOOLBAR_ENCODING_MENU_CONTROLLER_H_
-#define CHROME_BROWSER_UI_TOOLBAR_ENCODING_MENU_CONTROLLER_H_
-
-#include <string>
-#include <utility>
-#include <vector>
-
-#include "base/gtest_prod_util.h"
-#include "base/macros.h"
-#include "base/strings/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, base::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* menu_items);
-
- 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_UI_TOOLBAR_ENCODING_MENU_CONTROLLER_H_
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model_unittest.cc ('k') | chrome/browser/ui/toolbar/encoding_menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698