OLD | NEW |
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 "views/window/dialog_client_view.h" | 5 #include "views/window/dialog_client_view.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <uxtheme.h> | 9 #include <uxtheme.h> |
10 #include <vsstyle.h> | 10 #include <vsstyle.h> |
11 #else | 11 #else |
12 #include <gtk/gtk.h> | 12 #include <gtk/gtk.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "grit/app_strings.h" | 18 #include "grit/ui_strings.h" |
19 #include "ui/base/keycodes/keyboard_codes.h" | 19 #include "ui/base/keycodes/keyboard_codes.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
22 #include "ui/gfx/canvas_skia.h" | 22 #include "ui/gfx/canvas_skia.h" |
23 #include "ui/gfx/font.h" | 23 #include "ui/gfx/font.h" |
24 #include "views/controls/button/text_button.h" | 24 #include "views/controls/button/text_button.h" |
25 #include "views/layout/layout_constants.h" | 25 #include "views/layout/layout_constants.h" |
26 #include "views/widget/root_view.h" | 26 #include "views/widget/root_view.h" |
27 #include "views/widget/widget.h" | 27 #include "views/widget/widget.h" |
28 #include "views/window/dialog_delegate.h" | 28 #include "views/window/dialog_delegate.h" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 void DialogClientView::InitClass() { | 577 void DialogClientView::InitClass() { |
578 static bool initialized = false; | 578 static bool initialized = false; |
579 if (!initialized) { | 579 if (!initialized) { |
580 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 580 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
581 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); | 581 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); |
582 initialized = true; | 582 initialized = true; |
583 } | 583 } |
584 } | 584 } |
585 | 585 |
586 } // namespace views | 586 } // namespace views |
OLD | NEW |