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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/browser_action_button.h

Issue 1888133002: [Extensions UI Mac] Fix a bug with popped out actions' highlighted state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 @property(readonly, nonatomic) BOOL isBeingDragged; 94 @property(readonly, nonatomic) BOOL isBeingDragged;
95 95
96 @end 96 @end
97 97
98 @interface BrowserActionButton(TestingAPI) 98 @interface BrowserActionButton(TestingAPI)
99 // Sets a context menu to use for testing purposes. 99 // Sets a context menu to use for testing purposes.
100 - (void)setTestContextMenu:(NSMenu*)testContextMenu; 100 - (void)setTestContextMenu:(NSMenu*)testContextMenu;
101 // Returns true if the action wants to run. 101 // Returns true if the action wants to run.
102 - (BOOL)wantsToRunForTesting; 102 - (BOOL)wantsToRunForTesting;
103 // Returns true if the cell is highlighted.
104 - (BOOL)isHighlighted;
103 @end 105 @end
104 106
105 @interface BrowserActionCell : ImageButtonCell { 107 @interface BrowserActionCell : ImageButtonCell {
106 @private 108 @private
107 // The controller for the browser actions bar that owns the button. Weak. 109 // The controller for the browser actions bar that owns the button. Weak.
108 BrowserActionsController* browserActionsController_; 110 BrowserActionsController* browserActionsController_;
109 } 111 }
110 112
111 @property(assign, nonatomic) 113 @property(assign, nonatomic)
112 BrowserActionsController* browserActionsController; 114 BrowserActionsController* browserActionsController;
113 115
114 @end 116 @end
115 117
116 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ 118 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698