OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" | 5 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" |
6 | 6 |
7 #import <CoreLocation/CoreLocation.h> | 7 #import <CoreLocation/CoreLocation.h> |
8 #include <QuartzCore/QuartzCore.h> | 8 #include <QuartzCore/QuartzCore.h> |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 // Calling -completeAndHide while a prerender animation is in progress | 1624 // Calling -completeAndHide while a prerender animation is in progress |
1625 // will result in hiding the progress bar before the animation is | 1625 // will result in hiding the progress bar before the animation is |
1626 // complete. | 1626 // complete. |
1627 [_determinateProgressView setProgress:1 | 1627 [_determinateProgressView setProgress:1 |
1628 animated:YES | 1628 animated:YES |
1629 completion:^(BOOL finished) { | 1629 completion:^(BOOL finished) { |
1630 [_determinateProgressView setHidden:YES | 1630 [_determinateProgressView setHidden:YES |
1631 animated:YES | 1631 animated:YES |
1632 completion:nil]; | 1632 completion:nil]; |
1633 }]; | 1633 }]; |
| 1634 UIAccessibilityPostNotification( |
| 1635 UIAccessibilityAnnouncementNotification, |
| 1636 l10n_util::GetNSString( |
| 1637 IDS_IOS_PAGE_LOADED_ACCESSIBILITY_ANNOUNCEMENT)); |
1634 } | 1638 } |
1635 CGFloat delay = _unitTesting ? 0 : kLoadCompleteHideProgressBarDelay; | 1639 CGFloat delay = _unitTesting ? 0 : kLoadCompleteHideProgressBarDelay; |
1636 [self performSelector:@selector(hideProgressBarAndTakeSnapshot) | 1640 [self performSelector:@selector(hideProgressBarAndTakeSnapshot) |
1637 withObject:nil | 1641 withObject:nil |
1638 afterDelay:delay]; | 1642 afterDelay:delay]; |
1639 } | 1643 } |
1640 } | 1644 } |
1641 | 1645 |
1642 - (void)hideProgressBarAndTakeSnapshot { | 1646 - (void)hideProgressBarAndTakeSnapshot { |
1643 // The UI may have been torn down while this selector was queued. If | 1647 // The UI may have been torn down while this selector was queued. If |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 | 2568 |
2565 - (BOOL)isPrerenderAnimationRunning { | 2569 - (BOOL)isPrerenderAnimationRunning { |
2566 return _prerenderAnimating; | 2570 return _prerenderAnimating; |
2567 } | 2571 } |
2568 | 2572 |
2569 - (OmniboxTextFieldIOS*)omnibox { | 2573 - (OmniboxTextFieldIOS*)omnibox { |
2570 return _omniBox.get(); | 2574 return _omniBox.get(); |
2571 } | 2575 } |
2572 | 2576 |
2573 @end | 2577 @end |
OLD | NEW |