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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OpenMatch(const AutocompleteMatch& match, | 49 void OpenMatch(const AutocompleteMatch& match, |
50 WindowOpenDisposition disposition, | 50 WindowOpenDisposition disposition, |
51 const GURL& alternate_nav_url, | 51 const GURL& alternate_nav_url, |
52 const base::string16& pasted_text, | 52 const base::string16& pasted_text, |
53 size_t selected_line) override; | 53 size_t selected_line) override; |
54 base::string16 GetText() const override; | 54 base::string16 GetText() const override; |
55 void SetWindowTextAndCaretPos(const base::string16& text, | 55 void SetWindowTextAndCaretPos(const base::string16& text, |
56 size_t caret_pos, | 56 size_t caret_pos, |
57 bool update_popup, | 57 bool update_popup, |
58 bool notify_text_changed) override; | 58 bool notify_text_changed) override; |
| 59 void SetCaretPos(size_t caret_pos) override; |
59 void RevertAll() override; | 60 void RevertAll() override; |
60 void UpdatePopup() override; | 61 void UpdatePopup() override; |
61 void OnTemporaryTextMaybeChanged(const base::string16& display_text, | 62 void OnTemporaryTextMaybeChanged(const base::string16& display_text, |
62 bool save_original_selection, | 63 bool save_original_selection, |
63 bool notify_text_changed) override; | 64 bool notify_text_changed) override; |
64 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, | 65 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, |
65 size_t user_text_length) override; | 66 size_t user_text_length) override; |
66 void OnBeforePossibleChange() override; | 67 void OnBeforePossibleChange() override; |
67 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; | 68 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; |
68 bool IsImeComposing() const override; | 69 bool IsImeComposing() const override; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 182 |
182 // Bridges delegate method calls from |field_| to C++ land. | 183 // Bridges delegate method calls from |field_| to C++ land. |
183 base::scoped_nsobject<AutocompleteTextFieldDelegate> field_delegate_; | 184 base::scoped_nsobject<AutocompleteTextFieldDelegate> field_delegate_; |
184 | 185 |
185 // Temporary pointer to the attributed display string, stored as color and | 186 // Temporary pointer to the attributed display string, stored as color and |
186 // other emphasis attributes are applied by the superclass. | 187 // other emphasis attributes are applied by the superclass. |
187 NSMutableAttributedString* attributing_display_string_; // weak | 188 NSMutableAttributedString* attributing_display_string_; // weak |
188 }; | 189 }; |
189 | 190 |
190 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ | 191 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_IOS_H_ |
OLD | NEW |