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

Side by Side Diff: chrome/browser/webui/options/language_options_handler.h

Issue 6469067: WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mac files Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_WEBUI_OPTIONS_LANGUAGE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_WEBUI_OPTIONS_LANGUAGE_OPTIONS_HANDLER_H_
7 #pragma once
8
9 #include "chrome/browser/dom_ui/options/language_options_handler_common.h"
10
11 // Language options UI page handler for non-Chrome OS platforms. For Chrome OS,
12 // see chromeos::CrosLanguageOptionsHandler.
13 class LanguageOptionsHandler : public LanguageOptionsHandlerCommon {
14 public:
15 LanguageOptionsHandler();
16 virtual ~LanguageOptionsHandler();
17
18 // OptionsUIHandler implementation.
19 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
20
21 // WebUIMessageHandler implementation.
22 virtual void RegisterMessages();
23
24 // The following static method is public for ease of testing.
25
26 // Gets the list of languages from the given input descriptors.
27 // The return value will look like:
28 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'},
29 // ...]
30 static ListValue* GetLanguageList();
31
32 private:
33 // LanguageOptionsHandlerCommon implementation.
34 virtual string16 GetProductName();
35 virtual void SetApplicationLocale(std::string language_code);
36
37 // Called when the restart button is clicked.
38 void RestartCallback(const ListValue* args);
39
40 DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandler);
41 };
42
43 #endif // CHROME_BROWSER_WEBUI_OPTIONS_LANGUAGE_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/webui/options/import_data_handler.cc ('k') | chrome/browser/webui/options/language_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698