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

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h

Issue 657443004: MacViews: Get views based toolbar to compile on the Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-findbar
Patch Set: Rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // NSButton subclass which handles middle mouse clicking. 10 // NSButton subclass which handles middle mouse clicking.
11 11
12 @interface ToolbarButton : NSButton { 12 @interface ToolbarButton : NSButton {
13 @protected 13 @protected
14 // YES when middle mouse clicks should be handled. 14 // YES when middle mouse clicks should be handled.
15 BOOL handleMiddleClick_; 15 BOOL handleMiddleClick_;
16 } 16 }
17 17
18 // Whether or not to handle the mouse middle click events. 18 // Whether or not to handle the mouse middle click events.
19 @property(assign, nonatomic) BOOL handleMiddleClick; 19 @property(assign, nonatomic) BOOL handleMiddleClick;
20 20
21 @end 21 @end
22 22
23 @interface ToolbarButton (ExposedForTesting) 23 @interface ToolbarButton (ExposedForTesting)
24 - (BOOL)shouldHandleEvent:(NSEvent*)theEvent; 24 - (BOOL)shouldHandleEvent:(NSEvent*)theEvent;
25 @end 25 @end
26 26
27 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_H_ 27 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_BUTTON_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_button.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698