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

Side by Side Diff: services/ui/public/cpp/window_drop_target.h

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark Created 4 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698