Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: ios/chrome/browser/ui/omnibox/omnibox_view_ios.h

Issue 2934473003: Remove workaround for strikethrough text in iOS omnibox (Closed)
Patch Set: rebse Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698