| 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 #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 "app/gfx/canvas.h" | 17 #include "app/gfx/canvas.h" |
| 18 #include "app/gfx/font.h" | 18 #include "app/gfx/font.h" |
| 19 #include "app/l10n_util.h" | 19 #include "app/l10n_util.h" |
| 20 #include "app/resource_bundle.h" | 20 #include "app/resource_bundle.h" |
| 21 #include "base/keyboard_codes.h" | 21 #include "base/keyboard_codes.h" |
| 22 #include "grit/app_strings.h" | 22 #include "grit/app_strings.h" |
| 23 #include "skia/ext/skia_utils_gtk.h" | 23 #include "skia/ext/skia_utils_gtk.h" |
| 24 #include "views/controls/button/native_button.h" | 24 #include "views/controls/button/native_button.h" |
| 25 #include "views/standard_layout.h" | 25 #include "views/standard_layout.h" |
| 26 #include "views/window/dialog_delegate.h" | 26 #include "views/window/dialog_delegate.h" |
| 27 #include "views/window/window.h" | 27 #include "views/window/window.h" |
| 28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
| 29 #include "base/gfx/native_theme.h" | 29 #include "app/gfx/native_theme_win.h" |
| 30 #else | 30 #else |
| 31 #include "views/window/hit_test.h" | 31 #include "views/window/hit_test.h" |
| 32 #include "views/widget/widget.h" | 32 #include "views/widget/widget.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 namespace views { | 35 namespace views { |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| 39 // Updates any of the standard buttons according to the delegate. | 39 // Updates any of the standard buttons according to the delegate. |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 initialized = true; | 505 initialized = true; |
| 506 } | 506 } |
| 507 } | 507 } |
| 508 | 508 |
| 509 void DialogClientView::Close() { | 509 void DialogClientView::Close() { |
| 510 window()->Close(); | 510 window()->Close(); |
| 511 GetDialogDelegate()->OnClose(); | 511 GetDialogDelegate()->OnClose(); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace views | 514 } // namespace views |
| OLD | NEW |