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 #include "chrome/views/window/dialog_client_view.h" | 5 #include "chrome/views/window/dialog_client_view.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <uxtheme.h> | 8 #include <uxtheme.h> |
9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
10 | 10 |
| 11 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
12 #include "base/gfx/native_theme.h" | 13 #include "base/gfx/native_theme.h" |
13 #include "chrome/browser/views/standard_layout.h" | 14 #include "chrome/browser/views/standard_layout.h" |
14 #include "chrome/common/gfx/chrome_canvas.h" | 15 #include "chrome/common/gfx/chrome_canvas.h" |
15 #include "chrome/common/gfx/chrome_font.h" | 16 #include "chrome/common/gfx/chrome_font.h" |
16 #include "chrome/common/l10n_util.h" | |
17 #include "chrome/common/win_util.h" | 17 #include "chrome/common/win_util.h" |
18 #include "chrome/views/controls/button/native_button.h" | 18 #include "chrome/views/controls/button/native_button.h" |
19 #include "chrome/views/window/dialog_delegate.h" | 19 #include "chrome/views/window/dialog_delegate.h" |
20 #include "chrome/views/window/window.h" | 20 #include "chrome/views/window/window.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 void DialogClientView::InitClass() { | 432 void DialogClientView::InitClass() { |
433 static bool initialized = false; | 433 static bool initialized = false; |
434 if (!initialized) { | 434 if (!initialized) { |
435 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 435 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
436 dialog_button_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); | 436 dialog_button_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); |
437 initialized = true; | 437 initialized = true; |
438 } | 438 } |
439 } | 439 } |
440 | 440 |
441 } // namespace views | 441 } // namespace views |
OLD | NEW |