| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_NEW_TAB_BUTTON |
| 6 #define CHROME_BROWSER_COCOA_NEW_TAB_BUTTON |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/scoped_nsobject.h" |
| 11 |
| 12 // Overrides hit-test behavior to only accept clicks inside the image of the |
| 13 // button, not just inside the bounding box. This could be abstracted to general |
| 14 // use, but no other buttons are so irregularly shaped with respect to their |
| 15 // bounding box. |
| 16 |
| 17 @interface NewTabButton : NSButton { |
| 18 @private |
| 19 scoped_nsobject<NSBezierPath> imagePath_; |
| 20 } |
| 21 @end |
| 22 |
| 23 #endif // CHROME_BROWSER_COCOA_NEW_TAB_BUTTON |
| OLD | NEW |