| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA
_SOURCE_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA
_SOURCE_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA
_SOURCE_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_DATA
_SOURCE_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @class EditorField; | 10 @class EditorField; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // The current state of the view controller. | 24 // The current state of the view controller. |
| 25 @property(nonatomic, assign) EditViewControllerState state; | 25 @property(nonatomic, assign) EditViewControllerState state; |
| 26 | 26 |
| 27 // Returns the header item. May be nil. | 27 // Returns the header item. May be nil. |
| 28 - (CollectionViewItem*)headerItem; | 28 - (CollectionViewItem*)headerItem; |
| 29 | 29 |
| 30 // Returns whether the header item should hide its background. | 30 // Returns whether the header item should hide its background. |
| 31 - (BOOL)shouldHideBackgroundForHeaderItem; | 31 - (BOOL)shouldHideBackgroundForHeaderItem; |
| 32 | 32 |
| 33 // Formats the editor field value, if necessary. |
| 34 - (void)formatValueForEditorField:(EditorField*)field; |
| 35 |
| 33 // Returns an icon that identifies |field| or its current value. May be nil. | 36 // Returns an icon that identifies |field| or its current value. May be nil. |
| 34 - (UIImage*)iconIdentifyingEditorField:(EditorField*)field; | 37 - (UIImage*)iconIdentifyingEditorField:(EditorField*)field; |
| 35 | 38 |
| 36 @end | 39 @end |
| 37 | 40 |
| 38 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_D
ATA_SOURCE_H_ | 41 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDIT_VIEW_CONTROLLER_D
ATA_SOURCE_H_ |
| OLD | NEW |