| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_material_view_controller.h" | 5 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_material_view_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 }; | 491 }; |
| 492 break; | 492 break; |
| 493 case SuggestionAnswer::PERSONALIZED_SUGGESTION: | 493 case SuggestionAnswer::PERSONALIZED_SUGGESTION: |
| 494 attributes = @{ | 494 attributes = @{ |
| 495 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16], | 495 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16], |
| 496 }; | 496 }; |
| 497 break; | 497 break; |
| 498 case SuggestionAnswer::ANSWER_TEXT_MEDIUM: | 498 case SuggestionAnswer::ANSWER_TEXT_MEDIUM: |
| 499 attributes = @{ | 499 attributes = @{ |
| 500 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:20], | 500 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:20], |
| 501 foregroundColor : [UIColor grayColor], |
| 501 }; | 502 }; |
| 502 break; | 503 break; |
| 503 case SuggestionAnswer::ANSWER_TEXT_LARGE: | 504 case SuggestionAnswer::ANSWER_TEXT_LARGE: |
| 504 attributes = @{ | 505 attributes = @{ |
| 505 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:24], | 506 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:24], |
| 507 foregroundColor : [UIColor grayColor], |
| 506 }; | 508 }; |
| 507 break; | 509 break; |
| 508 case SuggestionAnswer::SUGGESTION_SECONDARY_TEXT_SMALL: | 510 case SuggestionAnswer::SUGGESTION_SECONDARY_TEXT_SMALL: |
| 509 attributes = @{ | 511 attributes = @{ |
| 510 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:12], | 512 font : [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:12], |
| 511 foregroundColor : [UIColor grayColor], | 513 foregroundColor : [UIColor grayColor], |
| 512 }; | 514 }; |
| 513 break; | 515 break; |
| 514 case SuggestionAnswer::SUGGESTION_SECONDARY_TEXT_MEDIUM: | 516 case SuggestionAnswer::SUGGESTION_SECONDARY_TEXT_MEDIUM: |
| 515 attributes = @{ | 517 attributes = @{ |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // The delete button never disappears if you don't call this after a tap. | 791 // The delete button never disappears if you don't call this after a tap. |
| 790 // It doesn't seem to be required anywhere else. | 792 // It doesn't seem to be required anywhere else. |
| 791 [_rows[indexPath.row] prepareForReuse]; | 793 [_rows[indexPath.row] prepareForReuse]; |
| 792 const AutocompleteMatch& match = | 794 const AutocompleteMatch& match = |
| 793 ((const AutocompleteResult&)_currentResult).match_at(indexPath.row); | 795 ((const AutocompleteResult&)_currentResult).match_at(indexPath.row); |
| 794 _popupView->DeleteMatch(match); | 796 _popupView->DeleteMatch(match); |
| 795 } | 797 } |
| 796 } | 798 } |
| 797 | 799 |
| 798 @end | 800 @end |
| OLD | NEW |