OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/bubble/bubble_frame_view.h" | 5 #include "ui/views/bubble/bubble_frame_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ui/native_theme/native_theme.h" | 23 #include "ui/native_theme/native_theme.h" |
24 #include "ui/resources/grit/ui_resources.h" | 24 #include "ui/resources/grit/ui_resources.h" |
25 #include "ui/strings/grit/ui_strings.h" | 25 #include "ui/strings/grit/ui_strings.h" |
26 #include "ui/vector_icons/vector_icons.h" | 26 #include "ui/vector_icons/vector_icons.h" |
27 #include "ui/views/bubble/bubble_border.h" | 27 #include "ui/views/bubble/bubble_border.h" |
28 #include "ui/views/controls/button/image_button.h" | 28 #include "ui/views/controls/button/image_button.h" |
29 #include "ui/views/controls/button/image_button_factory.h" | 29 #include "ui/views/controls/button/image_button_factory.h" |
30 #include "ui/views/controls/image_view.h" | 30 #include "ui/views/controls/image_view.h" |
31 #include "ui/views/controls/label.h" | 31 #include "ui/views/controls/label.h" |
32 #include "ui/views/layout/box_layout.h" | 32 #include "ui/views/layout/box_layout.h" |
33 #include "ui/views/layout/layout_constants.h" | |
34 #include "ui/views/layout/layout_provider.h" | 33 #include "ui/views/layout/layout_provider.h" |
35 #include "ui/views/resources/grit/views_resources.h" | 34 #include "ui/views/resources/grit/views_resources.h" |
36 #include "ui/views/widget/widget.h" | 35 #include "ui/views/widget/widget.h" |
37 #include "ui/views/widget/widget_delegate.h" | 36 #include "ui/views/widget/widget_delegate.h" |
38 #include "ui/views/window/client_view.h" | 37 #include "ui/views/window/client_view.h" |
39 #include "ui/views/window/dialog_delegate.h" | 38 #include "ui/views/window/dialog_delegate.h" |
40 | 39 |
41 namespace views { | 40 namespace views { |
42 | 41 |
43 namespace { | 42 namespace { |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 547 |
549 DialogDelegate* dialog_delegate = | 548 DialogDelegate* dialog_delegate = |
550 GetWidget()->widget_delegate()->AsDialogDelegate(); | 549 GetWidget()->widget_delegate()->AsDialogDelegate(); |
551 if (dialog_delegate && dialog_delegate->ShouldSnapFrameWidth()) | 550 if (dialog_delegate && dialog_delegate->ShouldSnapFrameWidth()) |
552 size.set_width(LayoutProvider::Get()->GetSnappedDialogWidth(size.width())); | 551 size.set_width(LayoutProvider::Get()->GetSnappedDialogWidth(size.width())); |
553 | 552 |
554 return size; | 553 return size; |
555 } | 554 } |
556 | 555 |
557 } // namespace views | 556 } // namespace views |
OLD | NEW |