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

Side by Side Diff: chrome/browser/cocoa/new_tab_button.h

Issue 3046016: Restrict new tab button clicks to inside the image bounds, not anywhere in th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months 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 | « chrome/app/nibs/BrowserWindow.xib ('k') | chrome/browser/cocoa/new_tab_button.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/app/nibs/BrowserWindow.xib ('k') | chrome/browser/cocoa/new_tab_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698