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

Side by Side Diff: chrome/browser/ui/cocoa/wrench_menu/menu_tracked_button.h

Issue 6283005: [Mac] Move all the related files for the Wrench menu into a subdir of c/b/u/c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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_MENU_TRACKED_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_MENU_TRACKED_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 // A MenuTrackedButton is meant to be used whenever a button is placed inside 11 // A MenuTrackedButton is meant to be used whenever a button is placed inside
12 // the custom view of an NSMenuItem. If the user opens the menu in a non-sticky 12 // the custom view of an NSMenuItem. If the user opens the menu in a non-sticky
13 // fashion (i.e. clicks, holds, and drags) and then releases the mouse over 13 // fashion (i.e. clicks, holds, and drags) and then releases the mouse over
14 // a MenuTrackedButton, it will |-performClick:| itself. 14 // a MenuTrackedButton, it will |-performClick:| itself.
15 // 15 //
16 // To create the hover state effects, there are two code paths. When the menu 16 // To create the hover state effects, there are two code paths. When the menu
(...skipping 16 matching lines...) Expand all
33 33
34 // In order to get hover effects when the menu is sticky-opened, a tracking 34 // In order to get hover effects when the menu is sticky-opened, a tracking
35 // rect needs to be installed on the button. 35 // rect needs to be installed on the button.
36 NSTrackingRectTag trackingTag_; 36 NSTrackingRectTag trackingTag_;
37 } 37 }
38 38
39 @property (nonatomic, readonly, getter=isTracking) BOOL tracking; 39 @property (nonatomic, readonly, getter=isTracking) BOOL tracking;
40 40
41 @end 41 @end
42 42
43 #endif // CHROME_BROWSER_UI_COCOA_MENU_TRACKED_BUTTON_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698