OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_DROP_TARGET_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_DROP_TARGET_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <vector> |
| 10 |
| 11 #include "ui/gfx/geometry/point.h" |
| 12 |
| 13 namespace ui { |
| 14 |
| 15 // Interface that clients that want to opt-in to receiving drag drop events |
| 16 // pass to their mus::Window. |
| 17 class WindowDropTarget { |
| 18 public: |
| 19 virtual ~WindowDropTarget() {} |
| 20 |
| 21 virtual void OnDragStart( |
| 22 std::map<std::string, std::vector<uint8_t>> mime_data) = 0; |
| 23 |
| 24 virtual uint32_t OnDragEnter(uint32_t key_state, |
| 25 const gfx::Point& position, |
| 26 uint32_t effect_bitmask) = 0; |
| 27 |
| 28 virtual uint32_t OnDragOver(uint32_t key_state, |
| 29 const gfx::Point& position, |
| 30 uint32_t effect_bitmask) = 0; |
| 31 |
| 32 virtual void OnDragLeave() = 0; |
| 33 |
| 34 virtual uint32_t OnDragDrop(uint32_t key_state, |
| 35 const gfx::Point& position, |
| 36 uint32_t effect_bitmask) = 0; |
| 37 |
| 38 virtual void OnDragFinish() = 0; |
| 39 }; |
| 40 |
| 41 } // namespace ui |
| 42 |
| 43 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_DROP_TARGET_H_ |
OLD | NEW |