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/autofill/autofill_popup_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
13 #include "chrome/browser/ui/autofill/popup_constants.h" | 13 #include "chrome/browser/ui/autofill/popup_constants.h" |
14 #include "components/autofill/core/browser/autofill_popup_delegate.h" | 14 #include "components/autofill/core/browser/autofill_popup_delegate.h" |
15 #include "components/autofill/core/browser/popup_item_ids.h" | 15 #include "components/autofill/core/browser/popup_item_ids.h" |
16 #include "content/public/browser/native_web_keyboard_event.h" | 16 #include "content/public/browser/native_web_keyboard_event.h" |
17 #include "grit/component_scaled_resources.h" | 17 #include "grit/component_scaled_resources.h" |
18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 #include "ui/events/event.h" | 19 #include "ui/events/event.h" |
| 20 #include "ui/gfx/geometry/vector2d.h" |
20 #include "ui/gfx/rect_conversions.h" | 21 #include "ui/gfx/rect_conversions.h" |
21 #include "ui/gfx/screen.h" | 22 #include "ui/gfx/screen.h" |
22 #include "ui/gfx/text_elider.h" | 23 #include "ui/gfx/text_elider.h" |
23 #include "ui/gfx/text_utils.h" | 24 #include "ui/gfx/text_utils.h" |
24 #include "ui/gfx/vector2d.h" | |
25 | 25 |
26 using base::WeakPtr; | 26 using base::WeakPtr; |
27 | 27 |
28 namespace autofill { | 28 namespace autofill { |
29 namespace { | 29 namespace { |
30 | 30 |
31 // Used to indicate that no line is currently selected by the user. | 31 // Used to indicate that no line is currently selected by the user. |
32 const int kNoSelection = -1; | 32 const int kNoSelection = -1; |
33 | 33 |
34 // The vertical height of each row in pixels. | 34 // The vertical height of each row in pixels. |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 names_.clear(); | 625 names_.clear(); |
626 subtexts_.clear(); | 626 subtexts_.clear(); |
627 icons_.clear(); | 627 icons_.clear(); |
628 identifiers_.clear(); | 628 identifiers_.clear(); |
629 full_names_.clear(); | 629 full_names_.clear(); |
630 | 630 |
631 selected_line_ = kNoSelection; | 631 selected_line_ = kNoSelection; |
632 } | 632 } |
633 | 633 |
634 } // namespace autofill | 634 } // namespace autofill |
OLD | NEW |