OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/font_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/font_settings_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/ui/webui/options/font_settings_utils.h" | 24 #include "chrome/browser/ui/webui/options/font_settings_utils.h" |
25 #include "chrome/common/extensions/extension_constants.h" | 25 #include "chrome/common/extensions/extension_constants.h" |
26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
27 #include "content/public/browser/font_list_async.h" | 27 #include "content/public/browser/font_list_async.h" |
28 #include "content/public/browser/notification_details.h" | 28 #include "content/public/browser/notification_details.h" |
29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
30 #include "content/public/browser/web_ui.h" | 30 #include "content/public/browser/web_ui.h" |
31 #include "extensions/browser/extension_registry.h" | 31 #include "extensions/browser/extension_registry.h" |
32 #include "extensions/browser/extension_system.h" | 32 #include "extensions/browser/extension_system.h" |
33 #include "extensions/common/extension.h" | 33 #include "extensions/common/extension.h" |
34 #include "grit/chromium_strings.h" | |
35 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
36 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
37 #include "url/gurl.h" | 36 #include "url/gurl.h" |
38 | 37 |
39 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
40 #include "ui/gfx/font.h" | 39 #include "ui/gfx/font.h" |
41 #include "ui/gfx/platform_font_win.h" | 40 #include "ui/gfx/platform_font_win.h" |
42 #endif | 41 #endif |
43 | 42 |
44 namespace { | 43 namespace { |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 chrome::FindBrowserWithWebContents(web_ui()->GetWebContents())); | 312 chrome::FindBrowserWithWebContents(web_ui()->GetWebContents())); |
314 } | 313 } |
315 | 314 |
316 void FontSettingsHandler::OnWebKitDefaultFontSizeChanged() { | 315 void FontSettingsHandler::OnWebKitDefaultFontSizeChanged() { |
317 SetUpStandardFontSample(); | 316 SetUpStandardFontSample(); |
318 SetUpSerifFontSample(); | 317 SetUpSerifFontSample(); |
319 SetUpSansSerifFontSample(); | 318 SetUpSansSerifFontSample(); |
320 } | 319 } |
321 | 320 |
322 } // namespace options | 321 } // namespace options |
OLD | NEW |