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

Side by Side Diff: chrome/browser/ui/cocoa/draggable_button.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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) 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_DRAGGABLE_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DRAGGABLE_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_DRAGGABLE_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_DRAGGABLE_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/memory/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/draggable_button_mixin.h" 11 #import "chrome/browser/ui/cocoa/draggable_button_mixin.h"
12 12
13 // Class for buttons that can be drag sources. If the mouse is clicked and moved 13 // Class for buttons that can be drag sources. If the mouse is clicked and moved
14 // more than a given distance, this class will call |-beginDrag:| instead of 14 // more than a given distance, this class will call |-beginDrag:| instead of
15 // |-performClick:|. Subclasses should override these two methods. 15 // |-performClick:|. Subclasses should override these two methods.
16 @interface DraggableButton : NSButton<DraggableButtonMixin> { 16 @interface DraggableButton : NSButton<DraggableButtonMixin> {
17 @private 17 @private
18 scoped_nsobject<DraggableButtonImpl> draggableButtonImpl_; 18 base::scoped_nsobject<DraggableButtonImpl> draggableButtonImpl_;
19 } 19 }
20 20
21 @property(readonly, nonatomic) DraggableButtonImpl* draggableButton; 21 @property(readonly, nonatomic) DraggableButtonImpl* draggableButton;
22 22
23 @end 23 @end
24 24
25 #endif // CHROME_BROWSER_UI_COCOA_DRAGGABLE_BUTTON_H_ 25 #endif // CHROME_BROWSER_UI_COCOA_DRAGGABLE_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698