| 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" |
| 11 #include "views/controls/combo_box.h" | 11 #include "views/controls/combobox/combobox.h" |
| 12 #include "views/controls/button/button.h" | 12 #include "views/controls/button/button.h" |
| 13 #include "views/view.h" | 13 #include "views/view.h" |
| 14 | 14 |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 class GroupboxView; | 17 class GroupboxView; |
| 18 class Label; | 18 class Label; |
| 19 class NativeButton; | 19 class NativeButton; |
| 20 class TableModel; | 20 class TableModel; |
| 21 class TableView; | 21 class TableView; |
| 22 } | 22 } |
| 23 | 23 |
| 24 class FontDisplayView; | 24 class FontDisplayView; |
| 25 class DefaultEncodingComboboxModel; | 25 class DefaultEncodingComboboxModel; |
| 26 | 26 |
| 27 /////////////////////////////////////////////////////////////////////////////// | 27 /////////////////////////////////////////////////////////////////////////////// |
| 28 // FontsPageView | 28 // FontsPageView |
| 29 | 29 |
| 30 class FontsPageView : public OptionsPageView, | 30 class FontsPageView : public OptionsPageView, |
| 31 public views::ComboBox::Listener, | 31 public views::Combobox::Listener, |
| 32 public SelectFontDialog::Listener, | 32 public SelectFontDialog::Listener, |
| 33 public views::ButtonListener { | 33 public views::ButtonListener { |
| 34 public: | 34 public: |
| 35 explicit FontsPageView(Profile* profile); | 35 explicit FontsPageView(Profile* profile); |
| 36 virtual ~FontsPageView(); | 36 virtual ~FontsPageView(); |
| 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 gfx::Font& 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(); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int fixed_width_font_size_pixel_; | 110 int fixed_width_font_size_pixel_; |
| 111 StringPrefMember default_encoding_; | 111 StringPrefMember default_encoding_; |
| 112 bool font_changed_; | 112 bool font_changed_; |
| 113 | 113 |
| 114 // Windows font picker flag; | 114 // Windows font picker flag; |
| 115 FontTypeBeingChanged font_type_being_changed_; | 115 FontTypeBeingChanged font_type_being_changed_; |
| 116 | 116 |
| 117 // Default Encoding. | 117 // Default Encoding. |
| 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 |