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

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_wayland.h

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_drag_drop_client_wayland.h
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_wayland.h b/ui/views/widget/desktop_aura/desktop_drag_drop_client_wayland.h
new file mode 100644
index 0000000000000000000000000000000000000000..7efe123ba424c44ca4514553f3e219c9d779b4c1
--- /dev/null
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_wayland.h
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGETS_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_
+#define UI_VIEWS_WIDGETS_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_
+
+#include "base/compiler_specific.h"
+#include "ui/views/views_export.h"
+#include "ui/wm/public/drag_drop_client.h"
+
+namespace views {
+
+class VIEWS_EXPORT DesktopDragDropClientWayland
tonikitoo 2016/06/06 15:29:59 I believe we should start with the basis at this t
joone 2016/06/06 18:22:22 Ok, I will add DesktopDragDropClientWayland later.
+ : public aura::client::DragDropClient {
+ public:
+ explicit DesktopDragDropClientWayland(aura::Window* root_window);
+ ~DesktopDragDropClientWayland() override;
+
+ // Overridden from aura::client::DragDropClient:
+ int StartDragAndDrop(const ui::OSExchangeData& data,
+ aura::Window* root_window,
+ aura::Window* source_window,
+ const gfx::Point& root_location,
+ int operation,
+ ui::DragDropTypes::DragEventSource source) override;
+ void DragUpdate(aura::Window* target,
+ const ui::LocatedEvent& event) override;
+ void Drop(aura::Window* target,
+ const ui::LocatedEvent& event) override;
+ void DragCancel() override;
+ bool IsDragDropInProgress() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientWayland);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGETS_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_WAYLAND_H_

Powered by Google App Engine
This is Rietveld 408576698