| 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 #import "chrome/browser/ui/cocoa/history_overlay_controller.h" | 5 #import "chrome/browser/ui/cocoa/history_overlay_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "grit/theme_resources_standard.h" | 8 #include "grit/theme_resources.h" |
| 9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
| 10 #include "ui/gfx/image/image.h" | 10 #include "ui/gfx/image/image.h" |
| 11 | 11 |
| 12 #import <QuartzCore/QuartzCore.h> | 12 #import <QuartzCore/QuartzCore.h> |
| 13 | 13 |
| 14 #include <cmath> | 14 #include <cmath> |
| 15 | 15 |
| 16 // Constants /////////////////////////////////////////////////////////////////// | 16 // Constants /////////////////////////////////////////////////////////////////// |
| 17 | 17 |
| 18 // The radius of the circle drawn in the shield. | 18 // The radius of the circle drawn in the shield. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 [dictionary setObject:animation forKey:@"alphaValue"]; | 159 [dictionary setObject:animation forKey:@"alphaValue"]; |
| 160 [overlay setAnimations:dictionary]; | 160 [overlay setAnimations:dictionary]; |
| 161 [[overlay animator] setAlphaValue:0.0]; | 161 [[overlay animator] setAlphaValue:0.0]; |
| 162 } | 162 } |
| 163 | 163 |
| 164 - (void)animationDidStop:(CAAnimation*)theAnimation finished:(BOOL)finished { | 164 - (void)animationDidStop:(CAAnimation*)theAnimation finished:(BOOL)finished { |
| 165 [self.view removeFromSuperview]; | 165 [self.view removeFromSuperview]; |
| 166 } | 166 } |
| 167 | 167 |
| 168 @end | 168 @end |
| OLD | NEW |