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

Side by Side Diff: chrome/browser/ui/cocoa/menu_button.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, 2 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
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_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_MENU_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_MENU_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/toolbar/toolbar_button.h" 11 #import "chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h"
12 12
13 // This a button which displays a user-provided menu "attached" below it upon 13 // This a button which displays a user-provided menu "attached" below it upon
14 // being clicked or dragged (or clicked and held). It expects a 14 // being clicked or dragged (or clicked and held). It expects a
15 // |ClickHoldButtonCell| as cell. 15 // |ClickHoldButtonCell| as cell.
16 // 16 //
17 // There are two different behaviors of this button depending on the value of 17 // There are two different behaviors of this button depending on the value of
18 // the |openMenuOnClick| property. If YES, the target-action mechanism will be 18 // the |openMenuOnClick| property. If YES, the target-action mechanism will be
19 // handled internally to always show the menu when clicked. This behavior is 19 // handled internally to always show the menu when clicked. This behavior is
20 // used for the Wrench menu, for example. When the property is NO, the button 20 // used for the Wrench menu, for example. When the property is NO, the button
21 // can have a separate target-action but will open the menu when clicked and 21 // can have a separate target-action but will open the menu when clicked and
(...skipping 28 matching lines...) Expand all
50 - (NSRect)menuRect; 50 - (NSRect)menuRect;
51 51
52 @end // @interface MenuButton 52 @end // @interface MenuButton
53 53
54 // Available for subclasses. 54 // Available for subclasses.
55 @interface MenuButton (Protected) 55 @interface MenuButton (Protected)
56 - (void)configureCell; 56 - (void)configureCell;
57 @end 57 @end
58 58
59 #endif // CHROME_BROWSER_UI_COCOA_MENU_BUTTON_H_ 59 #endif // CHROME_BROWSER_UI_COCOA_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | chrome/browser/ui/cocoa/toolbar/reload_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698