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_HANGUL_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual ~LanguageHangulConfigView(); | 28 virtual ~LanguageHangulConfigView(); |
29 | 29 |
30 // views::Combobox::Listener overrides. | 30 // views::Combobox::Listener overrides. |
31 virtual void ItemChanged(views::Combobox* sender, | 31 virtual void ItemChanged(views::Combobox* sender, |
32 int prev_index, | 32 int prev_index, |
33 int new_index); | 33 int new_index); |
34 | 34 |
35 // views::DialogDelegate overrides. | 35 // views::DialogDelegate overrides. |
36 virtual bool IsModal() const { return true; } | 36 virtual bool IsModal() const { return true; } |
37 virtual views::View* GetContentsView() { return this; } | 37 virtual views::View* GetContentsView() { return this; } |
| 38 virtual int GetDialogButtons() const; |
| 39 virtual std::wstring GetDialogButtonLabel( |
| 40 MessageBoxFlags::DialogButton button) const; |
38 virtual std::wstring GetWindowTitle() const; | 41 virtual std::wstring GetWindowTitle() const; |
39 | 42 |
40 // views::View overrides. | 43 // views::View overrides. |
41 virtual void Layout(); | 44 virtual void Layout(); |
42 virtual gfx::Size GetPreferredSize(); | 45 virtual gfx::Size GetPreferredSize(); |
43 | 46 |
44 // OptionsPageView overrides. | 47 // OptionsPageView overrides. |
45 virtual void InitControlLayout(); | 48 virtual void InitControlLayout(); |
46 | 49 |
47 // NotificationObserver overrides. | 50 // NotificationObserver overrides. |
(...skipping 11 matching lines...) Expand all Loading... |
59 // A combobox for Hangul keyboard layouts and its model. | 62 // A combobox for Hangul keyboard layouts and its model. |
60 views::Combobox* hangul_keyboard_combobox_; | 63 views::Combobox* hangul_keyboard_combobox_; |
61 scoped_ptr<HangulKeyboardComboboxModel> hangul_keyboard_combobox_model_; | 64 scoped_ptr<HangulKeyboardComboboxModel> hangul_keyboard_combobox_model_; |
62 | 65 |
63 DISALLOW_COPY_AND_ASSIGN(LanguageHangulConfigView); | 66 DISALLOW_COPY_AND_ASSIGN(LanguageHangulConfigView); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace chromeos | 69 } // namespace chromeos |
67 | 70 |
68 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_ |
OLD | NEW |