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

Side by Side Diff: ui/base/dragdrop/drag_source.h

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « ui/base/dragdrop/drag_drop_types.h ('k') | ui/base/dragdrop/drop_target.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_BASE_DRAGDROP_DRAG_SOURCE_H_ 5 #ifndef UI_BASE_DRAGDROP_DRAG_SOURCE_H_
6 #define UI_BASE_DRAGDROP_DRAG_SOURCE_H_ 6 #define UI_BASE_DRAGDROP_DRAG_SOURCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <objidl.h> 9 #include <objidl.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "ui/ui_api.h" 13 #include "ui/base/ui_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 // A base IDropSource implementation. Handles notifications sent by an active 17 // A base IDropSource implementation. Handles notifications sent by an active
18 // drag-drop operation as the user mouses over other drop targets on their 18 // drag-drop operation as the user mouses over other drop targets on their
19 // system. This object tells Windows whether or not the drag should continue, 19 // system. This object tells Windows whether or not the drag should continue,
20 // and supplies the appropriate cursors. 20 // and supplies the appropriate cursors.
21 class UI_API DragSource : public IDropSource, 21 class UI_EXPORT DragSource : public IDropSource,
22 public base::RefCountedThreadSafe<DragSource> { 22 public base::RefCountedThreadSafe<DragSource> {
23 public: 23 public:
24 DragSource(); 24 DragSource();
25 virtual ~DragSource() {} 25 virtual ~DragSource() {}
26 26
27 // Stop the drag operation at the next chance we get. This doesn't 27 // Stop the drag operation at the next chance we get. This doesn't
28 // synchronously stop the drag (since Windows is controlling that), 28 // synchronously stop the drag (since Windows is controlling that),
29 // but lets us tell Windows to cancel the drag the next chance we get. 29 // but lets us tell Windows to cancel the drag the next chance we get.
30 void CancelDrag() { 30 void CancelDrag() {
31 cancel_drag_ = true; 31 cancel_drag_ = true;
32 } 32 }
(...skipping 15 matching lines...) Expand all
48 private: 48 private:
49 // Set to true if we want to cancel the drag operation. 49 // Set to true if we want to cancel the drag operation.
50 bool cancel_drag_; 50 bool cancel_drag_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(DragSource); 52 DISALLOW_COPY_AND_ASSIGN(DragSource);
53 }; 53 };
54 54
55 } // namespace ui 55 } // namespace ui
56 56
57 #endif // UI_BASE_DRAGDROP_DRAG_SOURCE_H_ 57 #endif // UI_BASE_DRAGDROP_DRAG_SOURCE_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drag_drop_types.h ('k') | ui/base/dragdrop/drop_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698