| 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 "views/window/dialog_client_view.h" | 5 #include "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/gfx/chrome_canvas.h" | 11 #include "app/gfx/chrome_canvas.h" |
| 12 #include "app/gfx/chrome_font.h" | 12 #include "app/gfx/chrome_font.h" |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "base/gfx/native_theme.h" | 15 #include "base/gfx/native_theme.h" |
| 16 #include "chrome/browser/views/standard_layout.h" | |
| 17 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 18 #include "views/controls/button/native_button.h" | 17 #include "views/controls/button/native_button.h" |
| 18 #include "views/standard_layout.h" |
| 19 #include "views/window/dialog_delegate.h" | 19 #include "views/window/dialog_delegate.h" |
| 20 #include "views/window/window.h" | 20 #include "views/window/window.h" |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Updates any of the standard buttons according to the delegate. | 26 // Updates any of the standard buttons according to the delegate. |
| 27 void UpdateButtonHelper(NativeButton* button_view, | 27 void UpdateButtonHelper(NativeButton* button_view, |
| 28 DialogDelegate* delegate, | 28 DialogDelegate* delegate, |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 void DialogClientView::InitClass() { | 431 void DialogClientView::InitClass() { |
| 432 static bool initialized = false; | 432 static bool initialized = false; |
| 433 if (!initialized) { | 433 if (!initialized) { |
| 434 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 434 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 435 dialog_button_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); | 435 dialog_button_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); |
| 436 initialized = true; | 436 initialized = true; |
| 437 } | 437 } |
| 438 } | 438 } |
| 439 | 439 |
| 440 } // namespace views | 440 } // namespace views |
| OLD | NEW |