| 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_POPUP_VIEW_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_VIEW_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_VIEW_IOS_H_ | 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_VIEW_IOS_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void OpenURLForRow(size_t row); | 40 void OpenURLForRow(size_t row); |
| 41 void DidScroll(); | 41 void DidScroll(); |
| 42 void UpdateEditViewIcon(); | 42 void UpdateEditViewIcon(); |
| 43 void CopyToOmnibox(const base::string16& text); | 43 void CopyToOmnibox(const base::string16& text); |
| 44 void SetTextAlignment(NSTextAlignment alignment); | 44 void SetTextAlignment(NSTextAlignment alignment); |
| 45 bool IsStarredMatch(const AutocompleteMatch& match) const; | 45 bool IsStarredMatch(const AutocompleteMatch& match) const; |
| 46 void DeleteMatch(const AutocompleteMatch& match) const; | 46 void DeleteMatch(const AutocompleteMatch& match) const; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 std::unique_ptr<OmniboxPopupModel> model_; | 49 std::unique_ptr<OmniboxPopupModel> model_; |
| 50 OmniboxViewIOS* edit_view_; // weak, owns this instance | 50 OmniboxViewIOS* edit_view_; // weak, owns this instance |
| 51 id<OmniboxPopupPositioner> positioner_; // weak | 51 __weak id<OmniboxPopupPositioner> positioner_; |
| 52 // View that contains the omnibox popup table view and shadow. | 52 // View that contains the omnibox popup table view and shadow. |
| 53 base::scoped_nsobject<UIView> popupView_; | 53 base::scoped_nsobject<UIView> popupView_; |
| 54 base::scoped_nsobject<OmniboxPopupMaterialViewController> popup_controller_; | 54 base::scoped_nsobject<OmniboxPopupMaterialViewController> popup_controller_; |
| 55 bool is_open_; | 55 bool is_open_; |
| 56 // Animate the appearance of the omnibox popup view. | 56 // Animate the appearance of the omnibox popup view. |
| 57 void AnimateDropdownExpansion(CGFloat parentHeight); | 57 void AnimateDropdownExpansion(CGFloat parentHeight); |
| 58 // Animate the disappearance of the omnibox popup view. | 58 // Animate the disappearance of the omnibox popup view. |
| 59 void AnimateDropdownCollapse(); | 59 void AnimateDropdownCollapse(); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_VIEW_IOS_H_ | 62 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_VIEW_IOS_H_ |
| OLD | NEW |