| 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 UI_VIEWS_MUS_DRAG_DROP_CLIENT_MUS_H_ |
| 6 #define UI_VIEWS_MUS_DRAG_DROP_CLIENT_MUS_H_ |
| 7 |
| 8 #include "ui/base/dragdrop/drag_drop_types.h" |
| 9 #include "ui/wm/public/drag_drop_client.h" |
| 10 |
| 11 namespace aura { |
| 12 class Window; |
| 13 } |
| 14 |
| 15 namespace ui { |
| 16 class LocatedEvent; |
| 17 class OSExchangeData; |
| 18 class Window; |
| 19 } |
| 20 |
| 21 namespace views { |
| 22 |
| 23 // An aura client object that translates aura dragging methods to their |
| 24 // remote ui::Window equivalents. |
| 25 class DragDropClientMus : public aura::client::DragDropClient { |
| 26 public: |
| 27 DragDropClientMus(aura::Window* aura_window, ui::Window* ui_window); |
| 28 ~DragDropClientMus() override; |
| 29 |
| 30 // Overridden from aura::client::DragDropClient: |
| 31 int StartDragAndDrop(const ui::OSExchangeData& data, |
| 32 aura::Window* root_window, |
| 33 aura::Window* source_window, |
| 34 const gfx::Point& screen_location, |
| 35 int drag_operations, |
| 36 ui::DragDropTypes::DragEventSource source) override; |
| 37 void DragUpdate(aura::Window* target, |
| 38 const ui::LocatedEvent& event) override; |
| 39 void Drop(aura::Window* target, |
| 40 const ui::LocatedEvent& event) override; |
| 41 void DragCancel() override; |
| 42 bool IsDragDropInProgress() override; |
| 43 |
| 44 private: |
| 45 aura::Window* aura_window_; |
| 46 ui::Window* ui_window_; |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(DragDropClientMus); |
| 49 }; |
| 50 |
| 51 } // namespace views |
| 52 |
| 53 #endif // UI_VIEWS_MUS_DRAG_DROP_CLIENT_MUS_H_ |
| OLD | NEW |