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 "grit/ui_resources.h" | |
10 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
12 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
13 #include "ui/gfx/image/image.h" | 12 #include "ui/gfx/image/image.h" |
14 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/gfx/point.h" | 14 #include "ui/gfx/point.h" |
16 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/text_utils.h" | 16 #include "ui/gfx/text_utils.h" |
18 #include "ui/views/border.h" | 17 #include "ui/views/border.h" |
19 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 131 |
133 // If the top level widget can't be found, cancel the popup since we can't | 132 // If the top level widget can't be found, cancel the popup since we can't |
134 // fully set it up. | 133 // fully set it up. |
135 if (!observing_widget) | 134 if (!observing_widget) |
136 return NULL; | 135 return NULL; |
137 | 136 |
138 return new AutofillPopupViewViews(controller, observing_widget); | 137 return new AutofillPopupViewViews(controller, observing_widget); |
139 } | 138 } |
140 | 139 |
141 } // namespace autofill | 140 } // namespace autofill |
OLD | NEW |