Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: ui/app_list/cocoa/apps_grid_view_item.mm

Issue 96103002: [Mac] Workaround for Mavericks AppKit accessibility bug in NSCollectionView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698