summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options2/language_options_handler_common2.h
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:44:07 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 01:44:07 +0000
commitd331e3921d439eefdda0a6caa213a8ba4952fad9 (patch)
tree616f608f1586d2a23333ba342c74966806505492 /chrome/browser/ui/webui/options2/language_options_handler_common2.h
parentfbc47649181a60877d94ef60312cdca536860480 (diff)
downloadchromium_src-d331e3921d439eefdda0a6caa213a8ba4952fad9.zip
chromium_src-d331e3921d439eefdda0a6caa213a8ba4952fad9.tar.gz
chromium_src-d331e3921d439eefdda0a6caa213a8ba4952fad9.tar.bz2
Revert 115057 - Moved all options2 files to the options2 namespace.
BUG=100885 TEST=everything compiles Review URL: http://codereview.chromium.org/8947010 TBR=binji@chromium.org Review URL: http://codereview.chromium.org/8989005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options2/language_options_handler_common2.h')
-rw-r--r--chrome/browser/ui/webui/options2/language_options_handler_common2.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/chrome/browser/ui/webui/options2/language_options_handler_common2.h b/chrome/browser/ui/webui/options2/language_options_handler_common2.h
deleted file mode 100644
index 4eae484..0000000
--- a/chrome/browser/ui/webui/options2/language_options_handler_common2.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_
-#pragma once
-
-#include "chrome/browser/ui/webui/options2/options_ui2.h"
-
-namespace base {
-class DictionaryValue;
-class ListValue;
-}
-
-namespace options2 {
-
-// The base class for language options page UI handlers. This class has code
-// common to the Chrome OS and non-Chrome OS implementation of the handler.
-class LanguageOptionsHandlerCommon : public OptionsPageUIHandler {
- public:
- LanguageOptionsHandlerCommon();
- virtual ~LanguageOptionsHandlerCommon();
-
- // OptionsPageUIHandler implementation.
- virtual void GetLocalizedValues(
- base::DictionaryValue* localized_strings) OVERRIDE;
-
- // DOMMessageHandler implementation.
- virtual void RegisterMessages() OVERRIDE;
-
- // The following static methods are public for ease of testing.
-
- // Gets the set of language codes that can be used as UI language.
- // The return value will look like:
- // {'en-US': true, 'fi': true, 'fr': true, ...}
- //
- // Note that true in values does not mean anything. We just use the
- // dictionary as a set.
- static base::DictionaryValue* GetUILanguageCodeSet();
-
- // Gets the set of language codes that can be used for spellchecking.
- // The return value will look like:
- // {'en-US': true, 'fi': true, 'fr': true, ...}
- //
- // Note that true in values does not mean anything. We just use the
- // dictionary as a set.
- static base::DictionaryValue* GetSpellCheckLanguageCodeSet();
-
- private:
- // Returns the name of the product (ex. "Chrome" or "Chrome OS").
- virtual string16 GetProductName() = 0;
-
- // Sets the application locale.
- virtual void SetApplicationLocale(const std::string& language_code) = 0;
-
- // Called when the language options is opened.
- void LanguageOptionsOpenCallback(const base::ListValue* args);
-
- // Called when the UI language is changed.
- // |args| will contain the language code as string (ex. "fr").
- void UiLanguageChangeCallback(const base::ListValue* args);
-
- // Called when the spell check language is changed.
- // |args| will contain the language code as string (ex. "fr").
- void SpellCheckLanguageChangeCallback(const base::ListValue* args);
-
- DISALLOW_COPY_AND_ASSIGN(LanguageOptionsHandlerCommon);
-};
-
-} // namespace options2
-
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_LANGUAGE_OPTIONS_HANDLER_COMMON2_H_