| 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 "components/autofill/core/browser/suggestion.h" | 16 #include "components/autofill/core/browser/suggestion.h" |
| 17 #include "content/public/browser/native_web_keyboard_event.h" | 17 #include "content/public/browser/native_web_keyboard_event.h" |
| 18 #include "grit/components_scaled_resources.h" | 18 #include "grit/components_scaled_resources.h" |
| 19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
| 20 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
| 21 #include "ui/gfx/geometry/rect_conversions.h" | 21 #include "ui/gfx/geometry/rect_conversions.h" |
| 22 #include "ui/gfx/geometry/vector2d.h" |
| 22 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
| 23 #include "ui/gfx/text_elider.h" | 24 #include "ui/gfx/text_elider.h" |
| 24 #include "ui/gfx/text_utils.h" | 25 #include "ui/gfx/text_utils.h" |
| 25 #include "ui/gfx/vector2d.h" | |
| 26 | 26 |
| 27 using base::WeakPtr; | 27 using base::WeakPtr; |
| 28 | 28 |
| 29 namespace autofill { | 29 namespace autofill { |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // Used to indicate that no line is currently selected by the user. | 32 // Used to indicate that no line is currently selected by the user. |
| 33 const int kNoSelection = -1; | 33 const int kNoSelection = -1; |
| 34 | 34 |
| 35 // The vertical height of each row in pixels. | 35 // The vertical height of each row in pixels. |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 popup_bounds_ = gfx::Rect(); | 656 popup_bounds_ = gfx::Rect(); |
| 657 | 657 |
| 658 suggestions_.clear(); | 658 suggestions_.clear(); |
| 659 elided_values_.clear(); | 659 elided_values_.clear(); |
| 660 elided_labels_.clear(); | 660 elided_labels_.clear(); |
| 661 | 661 |
| 662 selected_line_ = kNoSelection; | 662 selected_line_ = kNoSelection; |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace autofill | 665 } // namespace autofill |
| OLD | NEW |