diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-29 01:04:19 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-29 01:04:19 +0000 |
commit | 905ef37a0740434886d17e5edca74529bdf36cc6 (patch) | |
tree | eada2c7fb372b3e464b87c24c194f219ea06687c /chrome/browser/gtk/options/fonts_page_gtk.h | |
parent | 8a2fcba0c72a3af7d8f6e417f5ce2658bb8fbe57 (diff) | |
download | chromium_src-905ef37a0740434886d17e5edca74529bdf36cc6.zip chromium_src-905ef37a0740434886d17e5edca74529bdf36cc6.tar.gz chromium_src-905ef37a0740434886d17e5edca74529bdf36cc6.tar.bz2 |
Gtk: Add default encoding option.
BUG=11507
Review URL: http://codereview.chromium.org/160307
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/fonts_page_gtk.h')
-rw-r--r-- | chrome/browser/gtk/options/fonts_page_gtk.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/gtk/options/fonts_page_gtk.h b/chrome/browser/gtk/options/fonts_page_gtk.h index 7733094..7bcd244 100644 --- a/chrome/browser/gtk/options/fonts_page_gtk.h +++ b/chrome/browser/gtk/options/fonts_page_gtk.h @@ -9,7 +9,9 @@ #define CHROME_BROWSER_GTK_OPTIONS_FONTS_PAGE_GTK_H_ #include <gtk/gtk.h> +#include <vector> +#include "chrome/browser/character_encoding.h" #include "chrome/browser/options_page_base.h" #include "chrome/common/pref_member.h" @@ -24,6 +26,7 @@ class FontsPageGtk : public OptionsPageBase { private: void Init(); + void InitDefaultEncodingComboBox(); // Overridden from OptionsPageBase. virtual void NotifyPrefChanged(const std::wstring* pref_name); @@ -42,12 +45,17 @@ class FontsPageGtk : public OptionsPageBase { FontsPageGtk* fonts_page); static void OnFixedFontSet(GtkFontButton* font_button, FontsPageGtk* fonts_page); + static void OnDefaultEncodingChanged(GtkComboBox* combo_box, + FontsPageGtk* fonts_page); // The font chooser widgets GtkWidget* serif_font_button_; GtkWidget* sans_font_button_; GtkWidget* fixed_font_button_; + // The default encoding combobox widget. + GtkWidget* default_encoding_combobox_; + // The widget containing the options for this page. GtkWidget* page_; @@ -62,6 +70,7 @@ class FontsPageGtk : public OptionsPageBase { // Default encoding preference. StringPrefMember default_encoding_; + std::vector<CharacterEncoding::EncodingInfo> sorted_encoding_list_; DISALLOW_COPY_AND_ASSIGN(FontsPageGtk); }; |