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 "ui/views/window/dialog_client_view.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
11 #include <uxtheme.h> | 11 #include <uxtheme.h> |
12 #include <vsstyle.h> | 12 #include <vsstyle.h> |
13 #elif defined(TOOLKIT_USES_GTK) | 13 #elif defined(TOOLKIT_USES_GTK) |
14 #include <gtk/gtk.h> | 14 #include <gtk/gtk.h> |
15 #endif | 15 #endif |
16 | 16 |
17 #include <algorithm> | 17 #include <algorithm> |
18 | 18 |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "grit/ui_strings.h" | 20 #include "grit/ui_strings.h" |
21 #include "ui/base/hit_test.h" | 21 #include "ui/base/hit_test.h" |
22 #include "ui/base/keycodes/keyboard_codes.h" | 22 #include "ui/base/keycodes/keyboard_codes.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/gfx/canvas_skia.h" | 25 #include "ui/gfx/canvas_skia.h" |
26 #include "ui/gfx/font.h" | 26 #include "ui/gfx/font.h" |
| 27 #include "ui/views/window/dialog_delegate.h" |
27 #include "views/controls/button/text_button.h" | 28 #include "views/controls/button/text_button.h" |
28 #include "views/layout/layout_constants.h" | 29 #include "views/layout/layout_constants.h" |
29 #include "views/widget/root_view.h" | 30 #include "views/widget/root_view.h" |
30 #include "views/widget/widget.h" | 31 #include "views/widget/widget.h" |
31 #include "views/window/dialog_delegate.h" | |
32 | 32 |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 #include "ui/gfx/native_theme.h" | 34 #include "ui/gfx/native_theme.h" |
35 #else | 35 #else |
36 #include "ui/gfx/skia_utils_gtk.h" | 36 #include "ui/gfx/skia_utils_gtk.h" |
37 #endif | 37 #endif |
38 | 38 |
39 namespace views { | 39 namespace views { |
40 namespace { | 40 namespace { |
41 | 41 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 void DialogClientView::InitClass() { | 582 void DialogClientView::InitClass() { |
583 static bool initialized = false; | 583 static bool initialized = false; |
584 if (!initialized) { | 584 if (!initialized) { |
585 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 585 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
586 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); | 586 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); |
587 initialized = true; | 587 initialized = true; |
588 } | 588 } |
589 } | 589 } |
590 | 590 |
591 } // namespace views | 591 } // namespace views |
OLD | NEW |