Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / desktop_aura / desktop_drag_drop_client_wayland.h
1 // Copyright 2013 Intel Corporation. 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 OZONE_IMPL_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_
6 #define OZONE_IMPL_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_
7
8 #include "base/compiler_specific.h"
9 #include "ui/views/views_export.h"
10 #include "ui/wm/public/drag_drop_client.h"
11
12 namespace views {
13
14 class VIEWS_EXPORT DesktopDragDropClientWayland
15     : public aura::client::DragDropClient {
16  public:
17   explicit DesktopDragDropClientWayland(aura::Window* root_window);
18   virtual ~DesktopDragDropClientWayland();
19
20   // Overridden from aura::client::DragDropClient:
21   virtual int StartDragAndDrop(
22       const ui::OSExchangeData& data,
23       aura::Window* root_window,
24       aura::Window* source_window,
25       const gfx::Point& root_location,
26       int operation,
27       ui::DragDropTypes::DragEventSource source) OVERRIDE;
28   virtual void DragUpdate(aura::Window* target,
29                           const ui::LocatedEvent& event) OVERRIDE;
30   virtual void Drop(aura::Window* target,
31                     const ui::LocatedEvent& event) OVERRIDE;
32   virtual void DragCancel() OVERRIDE;
33   virtual bool IsDragDropInProgress() OVERRIDE;
34
35  private:
36   DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWayland);
37 };
38
39 }  // namespace views
40
41 #endif  // OZONE_IMPL_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_