OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/views/autofill/new_credit_card_bubble_views.h" | 5 #include "chrome/browser/ui/views/autofill/new_credit_card_bubble_views.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" | 8 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" |
9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" |
11 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
13 #include "ui/gfx/insets.h" | 13 #include "ui/gfx/geometry/insets.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 #include "ui/views/bubble/bubble_frame_view.h" | 15 #include "ui/views/bubble/bubble_frame_view.h" |
16 #include "ui/views/controls/image_view.h" | 16 #include "ui/views/controls/image_view.h" |
17 #include "ui/views/controls/link.h" | 17 #include "ui/views/controls/link.h" |
18 #include "ui/views/layout/box_layout.h" | 18 #include "ui/views/layout/box_layout.h" |
19 #include "ui/views/layout/layout_constants.h" | 19 #include "ui/views/layout/layout_constants.h" |
20 #include "ui/views/view.h" | 20 #include "ui/views/view.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 namespace autofill { | 23 namespace autofill { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 NewCreditCardBubbleViews::NewCreditCardBubbleViews( | 152 NewCreditCardBubbleViews::NewCreditCardBubbleViews( |
153 NewCreditCardBubbleController* controller) | 153 NewCreditCardBubbleController* controller) |
154 : BubbleDelegateView(GetAnchor(controller), GetArrow(controller)), | 154 : BubbleDelegateView(GetAnchor(controller), GetArrow(controller)), |
155 controller_(controller), | 155 controller_(controller), |
156 weak_ptr_factory_(this) { | 156 weak_ptr_factory_(this) { |
157 gfx::Insets insets = views::BubbleFrameView::GetTitleInsets(); | 157 gfx::Insets insets = views::BubbleFrameView::GetTitleInsets(); |
158 set_margins(gfx::Insets(0, insets.left(), insets.top(), insets.left())); | 158 set_margins(gfx::Insets(0, insets.left(), insets.top(), insets.left())); |
159 } | 159 } |
160 | 160 |
161 } // namespace autofill | 161 } // namespace autofill |
OLD | NEW |