OLD | NEW |
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_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/cros/input_method_library.h" | 10 #include "chrome/browser/chromeos/cros/input_method_library.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 36 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
37 | 37 |
38 // views::Combobox::Listener overrides. | 38 // views::Combobox::Listener overrides. |
39 virtual void ItemChanged(views::Combobox* sender, | 39 virtual void ItemChanged(views::Combobox* sender, |
40 int prev_index, | 40 int prev_index, |
41 int new_index); | 41 int new_index); |
42 | 42 |
43 // views::DialogDelegate overrides. | 43 // views::DialogDelegate overrides. |
44 virtual bool IsModal() const { return true; } | 44 virtual bool IsModal() const { return true; } |
45 virtual views::View* GetContentsView() { return this; } | 45 virtual views::View* GetContentsView() { return this; } |
| 46 virtual int GetDialogButtons() const; |
| 47 virtual std::wstring GetDialogButtonLabel( |
| 48 MessageBoxFlags::DialogButton button) const; |
46 virtual std::wstring GetWindowTitle() const; | 49 virtual std::wstring GetWindowTitle() const; |
47 | 50 |
48 // views::View overrides. | 51 // views::View overrides. |
49 virtual void Layout(); | 52 virtual void Layout(); |
50 virtual gfx::Size GetPreferredSize(); | 53 virtual gfx::Size GetPreferredSize(); |
51 | 54 |
52 // OptionsPageView overrides. | 55 // OptionsPageView overrides. |
53 virtual void InitControlLayout(); | 56 virtual void InitControlLayout(); |
54 | 57 |
55 // NotificationObserver overrides. | 58 // NotificationObserver overrides. |
(...skipping 17 matching lines...) Expand all Loading... |
73 LanguageComboboxModel<int>* combobox_model; | 76 LanguageComboboxModel<int>* combobox_model; |
74 LanguageCombobox* combobox; | 77 LanguageCombobox* combobox; |
75 } double_pinyin_schema_; | 78 } double_pinyin_schema_; |
76 | 79 |
77 DISALLOW_COPY_AND_ASSIGN(LanguagePinyinConfigView); | 80 DISALLOW_COPY_AND_ASSIGN(LanguagePinyinConfigView); |
78 }; | 81 }; |
79 | 82 |
80 } // namespace chromeos | 83 } // namespace chromeos |
81 | 84 |
82 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
OLD | NEW |