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

Side by Side Diff: chrome/browser/chromeos/dom_ui/language_options_handler.h

Issue 2808106: Show native language names in the add language overlay. (Closed)
Patch Set: minor change Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/options_ui.h" 9 #include "chrome/browser/dom_ui/options_ui.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 // DOMMessageHandler implementation. 23 // DOMMessageHandler implementation.
24 virtual void RegisterMessages(); 24 virtual void RegisterMessages();
25 25
26 private: 26 private:
27 // Gets the list of input methods. The return value will look like: 27 // Gets the list of input methods. The return value will look like:
28 // [{'id': 'pinyin', 'displayName': 'Pinyin', 'languageCode': 'zh-CW'}, ...] 28 // [{'id': 'pinyin', 'displayName': 'Pinyin', 'languageCode': 'zh-CW'}, ...]
29 ListValue* GetInputMethodList(); 29 ListValue* GetInputMethodList();
30 30
31 // Gets the list of languages. The return value will look like: 31 // Gets the list of languages. The return value will look like:
32 // [{'code': 'fr', 'displayName': 'French'}, ...] 32 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'},
33 // ...]
33 ListValue* GetLanguageList(); 34 ListValue* GetLanguageList();
34 35
35 // Called when the UI language is changed. 36 // Called when the UI language is changed.
36 // |value| will be the language code as string (ex. "fr"). 37 // |value| will be the language code as string (ex. "fr").
37 void UiLanguageChangeCallback(const Value* value); 38 void UiLanguageChangeCallback(const Value* value);
38 39
39 DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler); 40 DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler);
40 }; 41 };
41 42
42 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_ 43 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698