| OLD | NEW |
| 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_WIN_H_ | 5 #ifndef UI_BASE_DRAGDROP_DRAG_SOURCE_WIN_H_ |
| 6 #define UI_BASE_DRAGDROP_DRAG_SOURCE_WIN_H_ | 6 #define UI_BASE_DRAGDROP_DRAG_SOURCE_WIN_H_ |
| 7 | 7 |
| 8 #include <objidl.h> | 8 #include <objidl.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // IUnknown implementation: | 38 // IUnknown implementation: |
| 39 HRESULT __stdcall QueryInterface(const IID& iid, void** object); | 39 HRESULT __stdcall QueryInterface(const IID& iid, void** object); |
| 40 ULONG __stdcall AddRef(); | 40 ULONG __stdcall AddRef(); |
| 41 ULONG __stdcall Release(); | 41 ULONG __stdcall Release(); |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 virtual void OnDragSourceCancel() {} | 44 virtual void OnDragSourceCancel() {} |
| 45 virtual void OnDragSourceDrop() {} | 45 virtual void OnDragSourceDrop() {} |
| 46 virtual void OnDragSourceMove() {} | 46 virtual void OnDragSourceMove() {} |
| 47 virtual bool ShouldDropDragSource(BOOL escape_pressed, DWORD key_state); |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 // Set to true if we want to cancel the drag operation. | 50 // Set to true if we want to cancel the drag operation. |
| 50 bool cancel_drag_; | 51 bool cancel_drag_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(DragSourceWin); | 53 DISALLOW_COPY_AND_ASSIGN(DragSourceWin); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace ui | 56 } // namespace ui |
| 56 | 57 |
| 57 #endif // UI_BASE_DRAGDROP_DRAG_SOURCE_WIN_H_ | 58 #endif // UI_BASE_DRAGDROP_DRAG_SOURCE_WIN_H_ |
| OLD | NEW |