Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: chrome/browser/ui/gtk/options/fonts_page_gtk.cc

Issue 6328002: Update references part 1: subdirectories of chrome/browser/ui/gtk/:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/gtk/options/fonts_page_gtk.h" 5 #include "chrome/browser/ui/gtk/options/fonts_page_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/default_encoding_combo_model.h" 12 #include "chrome/browser/default_encoding_combo_model.h"
13 #include "chrome/browser/gtk/gtk_util.h"
14 #include "chrome/browser/gtk/options/options_layout_gtk.h"
15 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/gtk/gtk_util.h"
15 #include "chrome/browser/ui/gtk/options/options_layout_gtk.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "gfx/font.h" 17 #include "gfx/font.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 19
20 namespace { 20 namespace {
21 21
22 // Make a Gtk font name string from a font family name and pixel size. 22 // Make a Gtk font name string from a font family name and pixel size.
23 std::string MakeFontName(std::string family_name, int pixel_size) { 23 std::string MakeFontName(std::string family_name, int pixel_size) {
24 // The given font might not be available (the default fonts we use are not 24 // The given font might not be available (the default fonts we use are not
25 // installed by default on some distros). So figure out which font we are 25 // installed by default on some distros). So figure out which font we are
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 SetFontsFromButton(&fixed_width_name_, 179 SetFontsFromButton(&fixed_width_name_,
180 &fixed_width_size_, 180 &fixed_width_size_,
181 font_button); 181 font_button);
182 } 182 }
183 183
184 void FontsPageGtk::OnDefaultEncodingChanged(GtkWidget* combo_box) { 184 void FontsPageGtk::OnDefaultEncodingChanged(GtkWidget* combo_box) {
185 int index = gtk_combo_box_get_active(GTK_COMBO_BOX(combo_box)); 185 int index = gtk_combo_box_get_active(GTK_COMBO_BOX(combo_box));
186 default_encoding_.SetValue(default_encoding_combobox_model_-> 186 default_encoding_.SetValue(default_encoding_combobox_model_->
187 GetEncodingCharsetByIndex(index)); 187 GetEncodingCharsetByIndex(index));
188 } 188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698