| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H
_ | 5 #ifndef IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H
_ |
| 6 #define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H
_ | 6 #define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H
_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @class OmniboxGeolocationAuthorizationAlert; | 10 @class OmniboxGeolocationAuthorizationAlert; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 - (void)authorizationAlertDidCancel: | 23 - (void)authorizationAlertDidCancel: |
| 24 (OmniboxGeolocationAuthorizationAlert*)authorizationAlert; | 24 (OmniboxGeolocationAuthorizationAlert*)authorizationAlert; |
| 25 | 25 |
| 26 @end | 26 @end |
| 27 | 27 |
| 28 // Presents the alert view that prompts the user to authorize using geolocation | 28 // Presents the alert view that prompts the user to authorize using geolocation |
| 29 // for Omnibox queries. | 29 // for Omnibox queries. |
| 30 @interface OmniboxGeolocationAuthorizationAlert : NSObject | 30 @interface OmniboxGeolocationAuthorizationAlert : NSObject |
| 31 | 31 |
| 32 // The delegate for this OmniboxGeolocationAuthorizationAlert. | 32 // The delegate for this OmniboxGeolocationAuthorizationAlert. |
| 33 @property(nonatomic, assign) | 33 @property(nonatomic, weak) id<OmniboxGeolocationAuthorizationAlertDelegate> |
| 34 id<OmniboxGeolocationAuthorizationAlertDelegate> delegate; | 34 delegate; |
| 35 | 35 |
| 36 // Designated initializer. Initializes this instance with |delegate|. | 36 // Designated initializer. Initializes this instance with |delegate|. |
| 37 - (instancetype)initWithDelegate: | 37 - (instancetype)initWithDelegate: |
| 38 (id<OmniboxGeolocationAuthorizationAlertDelegate>)delegate | 38 (id<OmniboxGeolocationAuthorizationAlertDelegate>)delegate |
| 39 NS_DESIGNATED_INITIALIZER; | 39 NS_DESIGNATED_INITIALIZER; |
| 40 | 40 |
| 41 // Shows the authorization alert. | 41 // Shows the authorization alert. |
| 42 - (void)showAuthorizationAlert; | 42 - (void)showAuthorizationAlert; |
| 43 | 43 |
| 44 @end | 44 @end |
| 45 | 45 |
| 46 #endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALER
T_H_ | 46 #endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALER
T_H_ |
| OLD | NEW |