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 uint32_t OnDragEnter( |
| 22 std::map<std::string, std::vector<uint8_t>> mime_types, |
| 23 uint32_t key_state, |
| 24 const gfx::Point& position, |
| 25 uint32_t effect_bitmask) = 0; |
| 26 |
| 27 virtual uint32_t OnDragOver(uint32_t key_state, |
| 28 const gfx::Point& position, |
| 29 uint32_t effect_bitmask) = 0; |
| 30 |
| 31 virtual void OnDragLeave() = 0; |
| 32 |
| 33 virtual uint32_t OnDragDrop(uint32_t key_state, |
| 34 const gfx::Point& position, |
| 35 uint32_t effect_bitmask) = 0; |
| 36 }; |
| 37 |
| 38 } // namespace ui |
| 39 |
| 40 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_DROP_TARGET_H_ |
OLD | NEW |