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

Unified Diff: chrome/browser/character_encoding.h

Issue 28179: Now we sort encoding menu according to current application locale, we also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/character_encoding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/character_encoding.h
===================================================================
--- chrome/browser/character_encoding.h (revision 10451)
+++ chrome/browser/character_encoding.h (working copy)
@@ -58,6 +58,10 @@
// only in UI thread.
static std::wstring GetCanonicalEncodingDisplayNameByIndex(int index);
+ // Return encoding command id according to the index, which starts from
+ // zero to GetSupportCanonicalEncodingCount() - 1. Otherwise returns 0.
+ static int GetEncodingCommandIdByIndex(int index);
+
// Return canonical encoding name according to the encoding alias name. THIS
// FUNCTION IS NOT THREADSAFE. You must run this function only in UI thread.
static std::wstring GetCanonicalEncodingNameByAliasName(
« no previous file with comments | « no previous file | chrome/browser/character_encoding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698