diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/base/dragdrop/drop_target.cc | 5 | ||||
-rw-r--r-- | ui/base/dragdrop/drop_target.h | 11 |
2 files changed, 0 insertions, 16 deletions
diff --git a/ui/base/dragdrop/drop_target.cc b/ui/base/dragdrop/drop_target.cc index 9cf1c9d..a938b2a 100644 --- a/ui/base/dragdrop/drop_target.cc +++ b/ui/base/dragdrop/drop_target.cc @@ -11,7 +11,6 @@ namespace ui { IDropTargetHelper* DropTarget::cached_drop_target_helper_ = NULL; -int32 DropTarget::drag_identity_ = 0; DropTarget::DropTarget(HWND hwnd) : hwnd_(hwnd), @@ -55,10 +54,6 @@ HRESULT DropTarget::DragEnter(IDataObject* data_object, return S_OK; } - // Update the drag identity, skipping 0. - if (++drag_identity_ == 0) - ++drag_identity_; - current_data_object_ = data_object; POINT screen_pt = { cursor_position.x, cursor_position.y }; *effect = OnDragEnter(current_data_object_, key_state, screen_pt, *effect); diff --git a/ui/base/dragdrop/drop_target.h b/ui/base/dragdrop/drop_target.h index 46b43c0..0baed43 100644 --- a/ui/base/dragdrop/drop_target.h +++ b/ui/base/dragdrop/drop_target.h @@ -87,9 +87,6 @@ class DropTarget : public IDropTarget { POINT cursor_position, DWORD effect); - // Return the drag identity. - static int32 GetDragIdentity() { return drag_identity_; } - private: // Returns the cached drop helper, creating one if necessary. The returned // object is not addrefed. May return NULL if the object couldn't be created. @@ -108,14 +105,6 @@ class DropTarget : public IDropTarget { // first time it is actually used. static IDropTargetHelper* cached_drop_target_helper_; - // The drag identity (id). An up-counter that increases when the cursor first - // moves over the HWND in a DnD session (OnDragEnter). 0 is reserved to mean - // the "no/unknown" identity, and is used for initialization. The identity is - // sent to the renderer in drag enter notifications. Note: the identity value - // is passed over the renderer NPAPI interface to gears, so use int32 instead - // of int here. - static int32 drag_identity_; - // The HWND of the source. This HWND is used to determine coordinates for // mouse events that are sent to the renderer notifying various drag states. HWND hwnd_; |