| 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 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ | 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 base::scoped_nsobject<NSString> marked_text_before_change_; | 168 base::scoped_nsobject<NSString> marked_text_before_change_; |
| 169 NSRange current_selection_; | 169 NSRange current_selection_; |
| 170 NSRange old_selection_; | 170 NSRange old_selection_; |
| 171 | 171 |
| 172 // TODO(rohitrao): This is a monster hack, needed because closing the popup | 172 // TODO(rohitrao): This is a monster hack, needed because closing the popup |
| 173 // ends up inadvertently triggering a new round of autocomplete. Fix the | 173 // ends up inadvertently triggering a new round of autocomplete. Fix the |
| 174 // underlying problem, which is that textDidChange: is called when closing the | 174 // underlying problem, which is that textDidChange: is called when closing the |
| 175 // popup, and then remove this hack. b/5877366. | 175 // popup, and then remove this hack. b/5877366. |
| 176 BOOL ignore_popup_updates_; | 176 BOOL ignore_popup_updates_; |
| 177 | 177 |
| 178 // iOS 10.3 fails to apply the strikethrough style unless an extra style is |
| 179 // also applied. See https://crbug.com/699702 for discussion. |
| 180 BOOL use_strikethrough_workaround_; |
| 181 |
| 178 // Bridges delegate method calls from |field_| to C++ land. | 182 // Bridges delegate method calls from |field_| to C++ land. |
| 179 base::scoped_nsobject<AutocompleteTextFieldDelegate> field_delegate_; | 183 base::scoped_nsobject<AutocompleteTextFieldDelegate> field_delegate_; |
| 180 | 184 |
| 181 // Temporary pointer to the attributed display string, stored as color and | 185 // Temporary pointer to the attributed display string, stored as color and |
| 182 // other emphasis attributes are applied by the superclass. | 186 // other emphasis attributes are applied by the superclass. |
| 183 NSMutableAttributedString* attributing_display_string_; // weak | 187 NSMutableAttributedString* attributing_display_string_; // weak |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ | 190 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ |
| OLD | NEW |