| 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 #import "ui/app_list/cocoa/apps_grid_view_item.h" | 5 #import "ui/app_list/cocoa/apps_grid_view_item.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 [shadow setShadowBlurRadius:2.0]; | 451 [shadow setShadowBlurRadius:2.0]; |
| 452 [shadow setShadowColor:[NSColor colorWithCalibratedWhite:0 | 452 [shadow setShadowColor:[NSColor colorWithCalibratedWhite:0 |
| 453 alpha:0.14]]; | 453 alpha:0.14]]; |
| 454 [shadow set]; | 454 [shadow set]; |
| 455 | 455 |
| 456 [super drawImage:image | 456 [super drawImage:image |
| 457 withFrame:frame | 457 withFrame:frame |
| 458 inView:controlView]; | 458 inView:controlView]; |
| 459 } | 459 } |
| 460 | 460 |
| 461 // Workaround for http://crbug.com/324365: AppKit in Mavericks tries to call |
| 462 // - [NSButtonCell item] when inspecting accessibility. Without this, an |
| 463 // unrecognized selector exception is thrown inside AppKit, crashing Chrome. |
| 464 - (id)item { |
| 465 return nil; |
| 466 } |
| 467 |
| 461 @end | 468 @end |
| OLD | NEW |