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

Side by Side Diff: chrome/browser/cocoa/button_with_viewid.h

Issue 2973004: [Mac]Implement ViewID support. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Turns out that, it's not a good solution. Created 10 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import <Cocoa/Cocoa.h>
6 #include "chrome/browser/view_ids.h"
7
8 // Class for buttons that have ViewIDs.
9 @interface ButtonWithViewID : NSButton {
10 @private
11 // An optional command associated to this button, such as IDC_STOP, etc.
12 int command_;
13 }
14
15 @property(assign, nonatomic) int command;
16
17 // We use NSView's tag property for ViewID support. This method just stores
18 // the ViewID to the tag property. So do not use the tag property for other
19 // purpose.
20 - (void)setViewID:(ViewID)viewID;
21
22 @end // @interface ButtonWithViewID
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/button_with_viewid.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698