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

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

Issue 3081019: Add chromeos namespace to the language options page and its friends. (Closed)
Patch Set: 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
11 class DictionaryValue; 11 class DictionaryValue;
12 class ListValue; 12 class ListValue;
13 13
14 namespace chromeos {
15
14 // ChromeOS language options page UI handler. 16 // ChromeOS language options page UI handler.
15 class LanguageOptionsHandler : public OptionsPageUIHandler { 17 class LanguageOptionsHandler : public OptionsPageUIHandler {
16 public: 18 public:
17 LanguageOptionsHandler(); 19 LanguageOptionsHandler();
18 virtual ~LanguageOptionsHandler(); 20 virtual ~LanguageOptionsHandler();
19 21
20 // OptionsUIHandler implementation. 22 // OptionsUIHandler implementation.
21 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 23 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
22 24
23 // DOMMessageHandler implementation. 25 // DOMMessageHandler implementation.
24 virtual void RegisterMessages(); 26 virtual void RegisterMessages();
25 27
26 private: 28 private:
27 // Gets the list of input methods. The return value will look like: 29 // Gets the list of input methods. The return value will look like:
28 // [{'id': 'pinyin', 'displayName': 'Pinyin', 'languageCode': 'zh-CW'}, ...] 30 // [{'id': 'pinyin', 'displayName': 'Pinyin', 'languageCode': 'zh-CW'}, ...]
29 ListValue* GetInputMethodList(); 31 ListValue* GetInputMethodList();
30 32
31 // Gets the list of languages. The return value will look like: 33 // Gets the list of languages. The return value will look like:
32 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'}, 34 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'},
33 // ...] 35 // ...]
34 ListValue* GetLanguageList(); 36 ListValue* GetLanguageList();
35 37
36 // Called when the UI language is changed. 38 // Called when the UI language is changed.
37 // |value| will be the language code as string (ex. "fr"). 39 // |value| will be the language code as string (ex. "fr").
38 void UiLanguageChangeCallback(const Value* value); 40 void UiLanguageChangeCallback(const Value* value);
39 41
40 DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler); 42 DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler);
41 }; 43 };
42 44
45 } // namespace
46
43 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698