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

Side by Side Diff: chrome/browser/encoding_menu_controller_delegate.cc

Issue 11811: Get rid of ISO-8859-9 in the character encoding menu because it's now treated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/character_encoding.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/encoding_menu_controller_delegate.h" 5 #include "chrome/browser/encoding_menu_controller_delegate.h"
6 6
7 #include "chrome/app/chrome_dll_resource.h" 7 #include "chrome/app/chrome_dll_resource.h"
8 #include "chrome/browser/browser.h" 8 #include "chrome/browser/browser.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/character_encoding.h" 10 #include "chrome/browser/character_encoding.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 case IDC_ENCODING_KOI8U: 61 case IDC_ENCODING_KOI8U:
62 case IDC_ENCODING_ISO88597: 62 case IDC_ENCODING_ISO88597:
63 case IDC_ENCODING_WINDOWS1253: 63 case IDC_ENCODING_WINDOWS1253:
64 case IDC_ENCODING_ISO88594: 64 case IDC_ENCODING_ISO88594:
65 case IDC_ENCODING_ISO885913: 65 case IDC_ENCODING_ISO885913:
66 case IDC_ENCODING_WINDOWS1257: 66 case IDC_ENCODING_WINDOWS1257:
67 case IDC_ENCODING_ISO88593: 67 case IDC_ENCODING_ISO88593:
68 case IDC_ENCODING_ISO885910: 68 case IDC_ENCODING_ISO885910:
69 case IDC_ENCODING_ISO885914: 69 case IDC_ENCODING_ISO885914:
70 case IDC_ENCODING_ISO885916: 70 case IDC_ENCODING_ISO885916:
71 case IDC_ENCODING_ISO88599:
72 case IDC_ENCODING_WINDOWS1254: 71 case IDC_ENCODING_WINDOWS1254:
73 case IDC_ENCODING_ISO88596: 72 case IDC_ENCODING_ISO88596:
74 case IDC_ENCODING_WINDOWS1256: 73 case IDC_ENCODING_WINDOWS1256:
75 case IDC_ENCODING_ISO88598: 74 case IDC_ENCODING_ISO88598:
76 case IDC_ENCODING_WINDOWS1255: 75 case IDC_ENCODING_WINDOWS1255:
77 case IDC_ENCODING_WINDOWS1258: 76 case IDC_ENCODING_WINDOWS1258:
78 return (!encoding.empty() && encoding == 77 return (!encoding.empty() && encoding ==
79 CharacterEncoding::GetCanonicalEncodingNameByCommandId(id)); 78 CharacterEncoding::GetCanonicalEncodingNameByCommandId(id));
80 default: 79 default:
81 return false; 80 return false;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 if (l10n_util::AdjustStringForLocaleDirection(encoding, 112 if (l10n_util::AdjustStringForLocaleDirection(encoding,
114 &bidi_safe_encoding)) 113 &bidi_safe_encoding))
115 encoding.swap(bidi_safe_encoding); 114 encoding.swap(bidi_safe_encoding);
116 encoding_menu->AppendMenuItem(*it, encoding, Menu::RADIO); 115 encoding_menu->AppendMenuItem(*it, encoding, Menu::RADIO);
117 } 116 }
118 else 117 else
119 encoding_menu->AppendSeparator(); 118 encoding_menu->AppendSeparator();
120 } 119 }
121 } 120 }
122 121
OLDNEW
« no previous file with comments | « chrome/browser/character_encoding.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698