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