Index: chrome/browser/chromeos/options/language_pinyin_config_view.h |
diff --git a/chrome/browser/chromeos/options/language_pinyin_config_view.h b/chrome/browser/chromeos/options/language_pinyin_config_view.h |
deleted file mode 100644 |
index 4bbd1cc264699fd684f630981601e6028b72896d..0000000000000000000000000000000000000000 |
--- a/chrome/browser/chromeos/options/language_pinyin_config_view.h |
+++ /dev/null |
@@ -1,88 +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_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
-#define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
-#pragma once |
- |
-#include <string> |
- |
-#include "chrome/browser/chromeos/cros/input_method_library.h" |
-#include "chrome/browser/chromeos/language_preferences.h" |
-#include "chrome/browser/prefs/pref_member.h" |
-#include "chrome/browser/ui/views/options/options_page_view.h" |
-#include "views/controls/button/checkbox.h" |
-#include "views/controls/combobox/combobox.h" |
-#include "views/controls/label.h" |
-#include "views/window/dialog_delegate.h" |
- |
-namespace chromeos { |
- |
-class LanguageCombobox; |
-template <typename DataType> |
-class LanguageComboboxModel; |
- |
-// A dialog box for showing Traditional Chinese (Pinyin) input method |
-// preferences. |
-class LanguagePinyinConfigView : public views::ButtonListener, |
- public views::Combobox::Listener, |
- public views::DialogDelegate, |
- public OptionsPageView { |
- public: |
- explicit LanguagePinyinConfigView(Profile* profile); |
- virtual ~LanguagePinyinConfigView(); |
- |
- // views::ButtonListener overrides. |
- virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
- |
- // views::Combobox::Listener overrides. |
- virtual void ItemChanged(views::Combobox* sender, |
- int prev_index, |
- int new_index); |
- |
- // views::DialogDelegate overrides. |
- virtual bool IsModal() const { return true; } |
- virtual views::View* GetContentsView() { return this; } |
- virtual int GetDialogButtons() const; |
- virtual std::wstring GetDialogButtonLabel( |
- MessageBoxFlags::DialogButton button) const; |
- virtual std::wstring GetWindowTitle() const; |
- |
- // views::View overrides. |
- virtual void Layout(); |
- virtual gfx::Size GetPreferredSize(); |
- |
- // OptionsPageView overrides. |
- virtual void InitControlLayout(); |
- |
- // NotificationObserver overrides. |
- virtual void Observe(NotificationType type, |
- const NotificationSource& source, |
- const NotificationDetails& details); |
- |
- private: |
- // Updates the pinyin checkboxes. |
- void NotifyPrefChanged(); |
- |
- BooleanPrefMember pinyin_boolean_prefs_[ |
- language_prefs::kNumPinyinBooleanPrefs]; |
- // TODO(yusukes): Support integer prefs if needed. |
- views::View* contents_; |
- |
- // A checkboxes for Pinyin. |
- views::Checkbox* pinyin_boolean_checkboxes_[ |
- language_prefs::kNumPinyinBooleanPrefs]; |
- |
- struct DoublePinyinSchemaPrefAndAssociatedCombobox { |
- IntegerPrefMember multiple_choice_pref; |
- LanguageComboboxModel<int>* combobox_model; |
- LanguageCombobox* combobox; |
- } double_pinyin_schema_; |
- |
- DISALLOW_COPY_AND_ASSIGN(LanguagePinyinConfigView); |
-}; |
- |
-} // namespace chromeos |
- |
-#endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |