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 #include "ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert
.h" | 5 #include "ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert
.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #import "base/ios/weak_nsobject.h" | 9 #import "base/ios/weak_nsobject.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
12 #include "components/strings/grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
13 #include "ios/chrome/grit/ios_chromium_strings.h" | 13 #include "ios/chrome/grit/ios_chromium_strings.h" |
14 #include "ios/chrome/grit/ios_google_chrome_strings.h" | |
15 #include "ios/chrome/grit/ios_strings.h" | 14 #include "ios/chrome/grit/ios_strings.h" |
16 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 15 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
17 #include "ui/base/l10n/l10n_util_mac.h" | 16 #include "ui/base/l10n/l10n_util_mac.h" |
18 | 17 |
19 @interface OmniboxGeolocationAuthorizationAlert () { | 18 @interface OmniboxGeolocationAuthorizationAlert () { |
20 base::WeakNSProtocol<id<OmniboxGeolocationAuthorizationAlertDelegate>> | 19 base::WeakNSProtocol<id<OmniboxGeolocationAuthorizationAlertDelegate>> |
21 delegate_; | 20 delegate_; |
22 } | 21 } |
23 @end | 22 @end |
24 | 23 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 }]; | 84 }]; |
86 [alert addAction:cancelAction]; | 85 [alert addAction:cancelAction]; |
87 | 86 |
88 [[[[UIApplication sharedApplication] keyWindow] rootViewController] | 87 [[[[UIApplication sharedApplication] keyWindow] rootViewController] |
89 presentViewController:alert | 88 presentViewController:alert |
90 animated:YES | 89 animated:YES |
91 completion:nil]; | 90 completion:nil]; |
92 } | 91 } |
93 | 92 |
94 @end | 93 @end |
OLD | NEW |