| 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 return normal_font_list_; |
| 411 case POPUP_ITEM_ID_CREDIT_CARD_SIGNIN_PROMO: | 412 case POPUP_ITEM_ID_CREDIT_CARD_SIGNIN_PROMO: |
| 412 return normal_font_list_; | 413 return smaller_font_list_; |
| 413 case POPUP_ITEM_ID_TITLE: | 414 case POPUP_ITEM_ID_TITLE: |
| 414 case POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY: | 415 case POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY: |
| 415 case POPUP_ITEM_ID_DATALIST_ENTRY: | 416 case POPUP_ITEM_ID_DATALIST_ENTRY: |
| 416 case POPUP_ITEM_ID_PASSWORD_ENTRY: | 417 case POPUP_ITEM_ID_PASSWORD_ENTRY: |
| 417 return bold_font_list_; | 418 return bold_font_list_; |
| 418 } | 419 } |
| 419 NOTREACHED(); | 420 NOTREACHED(); |
| 420 return normal_font_list_; | 421 return normal_font_list_; |
| 421 } | 422 } |
| 422 | 423 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 // Don't clear view_, because otherwise the popup will have to get regenerated | 571 // Don't clear view_, because otherwise the popup will have to get regenerated |
| 571 // and this will cause flickering. | 572 // and this will cause flickering. |
| 572 suggestions_.clear(); | 573 suggestions_.clear(); |
| 573 elided_values_.clear(); | 574 elided_values_.clear(); |
| 574 elided_labels_.clear(); | 575 elided_labels_.clear(); |
| 575 | 576 |
| 576 selected_line_ = kNoSelection; | 577 selected_line_ = kNoSelection; |
| 577 } | 578 } |
| 578 | 579 |
| 579 } // namespace autofill | 580 } // namespace autofill |
| OLD | NEW |