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/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 401 |
402 // All other message types are defined here. | 402 // All other message types are defined here. |
403 PopupItemId id = static_cast<PopupItemId>(suggestions_[index].frontend_id); | 403 PopupItemId id = static_cast<PopupItemId>(suggestions_[index].frontend_id); |
404 switch (id) { | 404 switch (id) { |
405 case POPUP_ITEM_ID_WARNING_MESSAGE: | 405 case POPUP_ITEM_ID_WARNING_MESSAGE: |
406 return warning_font_list_; | 406 return warning_font_list_; |
407 case POPUP_ITEM_ID_CLEAR_FORM: | 407 case POPUP_ITEM_ID_CLEAR_FORM: |
408 case POPUP_ITEM_ID_AUTOFILL_OPTIONS: | 408 case POPUP_ITEM_ID_AUTOFILL_OPTIONS: |
409 case POPUP_ITEM_ID_SCAN_CREDIT_CARD: | 409 case POPUP_ITEM_ID_SCAN_CREDIT_CARD: |
410 case POPUP_ITEM_ID_SEPARATOR: | 410 case POPUP_ITEM_ID_SEPARATOR: |
| 411 case POPUP_ITEM_ID_CREDIT_CARD_SIGNIN_PROMO: |
411 return normal_font_list_; | 412 return normal_font_list_; |
412 case POPUP_ITEM_ID_TITLE: | 413 case POPUP_ITEM_ID_TITLE: |
413 case POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY: | 414 case POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY: |
414 case POPUP_ITEM_ID_DATALIST_ENTRY: | 415 case POPUP_ITEM_ID_DATALIST_ENTRY: |
415 case POPUP_ITEM_ID_PASSWORD_ENTRY: | 416 case POPUP_ITEM_ID_PASSWORD_ENTRY: |
416 return bold_font_list_; | 417 return bold_font_list_; |
417 } | 418 } |
418 NOTREACHED(); | 419 NOTREACHED(); |
419 return normal_font_list_; | 420 return normal_font_list_; |
420 } | 421 } |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 // Don't clear view_, because otherwise the popup will have to get regenerated | 570 // Don't clear view_, because otherwise the popup will have to get regenerated |
570 // and this will cause flickering. | 571 // and this will cause flickering. |
571 suggestions_.clear(); | 572 suggestions_.clear(); |
572 elided_values_.clear(); | 573 elided_values_.clear(); |
573 elided_labels_.clear(); | 574 elided_labels_.clear(); |
574 | 575 |
575 selected_line_ = kNoSelection; | 576 selected_line_ = kNoSelection; |
576 } | 577 } |
577 | 578 |
578 } // namespace autofill | 579 } // namespace autofill |
OLD | NEW |