Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / toolbar / toolbar_button_cocoa.h
blob2216ae8600a8ce13916b7e166756530e783ee541
1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_
8 #import <Cocoa/Cocoa.h>
10 // NSButton subclass which handles middle mouse clicking.
12 @interface ToolbarButton : NSButton {
13 @protected
14 // YES when middle mouse clicks should be handled.
15 BOOL handleMiddleClick_;
18 // Whether or not to handle the mouse middle click events.
19 @property(assign, nonatomic) BOOL handleMiddleClick;
21 @end
23 @interface ToolbarButton (ExposedForTesting)
24 - (BOOL)shouldHandleEvent:(NSEvent*)theEvent;
25 @end
27 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_