OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ |
6 #define CHROME_BROWSER_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ |
7 | 7 |
8 #include "chrome/browser/views/options/options_page_view.h" | 8 #include "chrome/browser/views/options/options_page_view.h" |
9 #include "chrome/browser/shell_dialogs.h" | 9 #include "chrome/browser/shell_dialogs.h" |
10 #include "chrome/common/pref_member.h" | 10 #include "chrome/common/pref_member.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // views::ButtonListener implementation: | 38 // views::ButtonListener implementation: |
39 virtual void ButtonPressed(views::Button* sender); | 39 virtual void ButtonPressed(views::Button* sender); |
40 | 40 |
41 // views::ComboBox::Listener implementation: | 41 // views::ComboBox::Listener implementation: |
42 virtual void ItemChanged(views::ComboBox* combo_box, | 42 virtual void ItemChanged(views::ComboBox* combo_box, |
43 int prev_index, | 43 int prev_index, |
44 int new_index); | 44 int new_index); |
45 | 45 |
46 // SelectFontDialog::Listener implementation: | 46 // SelectFontDialog::Listener implementation: |
47 virtual void FontSelected(const ChromeFont& font, void* params); | 47 virtual void FontSelected(const gfx::Font& font, void* params); |
48 | 48 |
49 // Save Changes made to relevent pref members associated with this tab. | 49 // Save Changes made to relevent pref members associated with this tab. |
50 // This is public since it is called by FontsLanguageWindowView in its | 50 // This is public since it is called by FontsLanguageWindowView in its |
51 // Dialog Delegate Accept() method. | 51 // Dialog Delegate Accept() method. |
52 void SaveChanges(); | 52 void SaveChanges(); |
53 | 53 |
54 protected: | 54 protected: |
55 // OptionsPageView implementation: | 55 // OptionsPageView implementation: |
56 virtual void InitControlLayout(); | 56 virtual void InitControlLayout(); |
57 virtual void NotifyPrefChanged(const std::wstring* pref_name); | 57 virtual void NotifyPrefChanged(const std::wstring* pref_name); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 scoped_ptr<DefaultEncodingComboboxModel> default_encoding_combobox_model_; | 118 scoped_ptr<DefaultEncodingComboboxModel> default_encoding_combobox_model_; |
119 views::Label* default_encoding_combobox_label_; | 119 views::Label* default_encoding_combobox_label_; |
120 views::ComboBox* default_encoding_combobox_; | 120 views::ComboBox* default_encoding_combobox_; |
121 std::wstring default_encoding_selected_; | 121 std::wstring default_encoding_selected_; |
122 bool default_encoding_changed_; | 122 bool default_encoding_changed_; |
123 | 123 |
124 DISALLOW_EVIL_CONSTRUCTORS(FontsPageView); | 124 DISALLOW_EVIL_CONSTRUCTORS(FontsPageView); |
125 }; | 125 }; |
126 | 126 |
127 #endif // #ifndef CHROME_BROWSER_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ | 127 #endif // #ifndef CHROME_BROWSER_VIEWS_OPTIONS_FONTS_PAGE_VIEW_H__ |
OLD | NEW |