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 "chrome/browser/ui/views/autofill/autofill_popup_view_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_popup_view_views.h" |
6 | 6 |
7 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" | 7 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" |
8 #include "components/autofill/core/browser/popup_item_ids.h" | 8 #include "components/autofill/core/browser/popup_item_ids.h" |
9 #include "components/autofill/core/browser/suggestion.h" | 9 #include "components/autofill/core/browser/suggestion.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/events/keycodes/keyboard_codes.h" | 11 #include "ui/events/keycodes/keyboard_codes.h" |
12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 13 #include "ui/gfx/geometry/point.h" |
13 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/gfx/point.h" | |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/text_utils.h" | 17 #include "ui/gfx/text_utils.h" |
18 #include "ui/views/border.h" | 18 #include "ui/views/border.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 | 20 |
21 namespace autofill { | 21 namespace autofill { |
22 | 22 |
23 AutofillPopupViewViews::AutofillPopupViewViews( | 23 AutofillPopupViewViews::AutofillPopupViewViews( |
24 AutofillPopupController* controller, views::Widget* observing_widget) | 24 AutofillPopupController* controller, views::Widget* observing_widget) |
25 : AutofillPopupBaseView(controller, observing_widget), | 25 : AutofillPopupBaseView(controller, observing_widget), |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // If the top level widget can't be found, cancel the popup since we can't | 135 // If the top level widget can't be found, cancel the popup since we can't |
136 // fully set it up. | 136 // fully set it up. |
137 if (!observing_widget) | 137 if (!observing_widget) |
138 return NULL; | 138 return NULL; |
139 | 139 |
140 return new AutofillPopupViewViews(controller, observing_widget); | 140 return new AutofillPopupViewViews(controller, observing_widget); |
141 } | 141 } |
142 | 142 |
143 } // namespace autofill | 143 } // namespace autofill |
OLD | NEW |