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

Side by Side Diff: ui/base/dragdrop/drop_target.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_source.h ('k') | ui/base/dragdrop/gtk_dnd_util.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_DROP_TARGET_H_ 5 #ifndef UI_BASE_DRAGDROP_DROP_TARGET_H_
6 #define UI_BASE_DRAGDROP_DROP_TARGET_H_ 6 #define UI_BASE_DRAGDROP_DROP_TARGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <objidl.h> 9 #include <objidl.h>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "ui/ui_api.h" 12 #include "ui/base/ui_export.h"
13 13
14 // Windows interface. 14 // Windows interface.
15 struct IDropTargetHelper; 15 struct IDropTargetHelper;
16 16
17 namespace ui { 17 namespace ui {
18 18
19 // A DropTarget implementation that takes care of the nitty gritty 19 // A DropTarget implementation that takes care of the nitty gritty
20 // of dnd. While this class is concrete, subclasses will most likely 20 // of dnd. While this class is concrete, subclasses will most likely
21 // want to override various OnXXX methods. 21 // want to override various OnXXX methods.
22 // 22 //
23 // Because DropTarget is ref counted you shouldn't delete it directly, 23 // Because DropTarget is ref counted you shouldn't delete it directly,
24 // rather wrap it in a scoped_refptr. Be sure and invoke RevokeDragDrop(m_hWnd) 24 // rather wrap it in a scoped_refptr. Be sure and invoke RevokeDragDrop(m_hWnd)
25 // before the HWND is deleted too. 25 // before the HWND is deleted too.
26 // 26 //
27 // This class is meant to be used in a STA and is not multithread-safe. 27 // This class is meant to be used in a STA and is not multithread-safe.
28 class UI_API DropTarget : public IDropTarget { 28 class UI_EXPORT DropTarget : public IDropTarget {
29 public: 29 public:
30 // Create a new DropTarget associating it with the given HWND. 30 // Create a new DropTarget associating it with the given HWND.
31 explicit DropTarget(HWND hwnd); 31 explicit DropTarget(HWND hwnd);
32 virtual ~DropTarget(); 32 virtual ~DropTarget();
33 33
34 // When suspended is set to |true|, the drop target does not receive drops 34 // When suspended is set to |true|, the drop target does not receive drops
35 // from drags initiated within the owning HWND. 35 // from drags initiated within the owning HWND.
36 bool suspended() const { return suspended_; } 36 bool suspended() const { return suspended_; }
37 void set_suspended(bool suspended) { suspended_ = suspended; } 37 void set_suspended(bool suspended) { suspended_ = suspended; }
38 38
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool suspended_; 115 bool suspended_;
116 116
117 LONG ref_count_; 117 LONG ref_count_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(DropTarget); 119 DISALLOW_COPY_AND_ASSIGN(DropTarget);
120 }; 120 };
121 121
122 } // namespace ui 122 } // namespace ui
123 123
124 #endif // UI_BASE_DRAGDROP_DROP_TARGET_H_ 124 #endif // UI_BASE_DRAGDROP_DROP_TARGET_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drag_source.h ('k') | ui/base/dragdrop/gtk_dnd_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698