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

Unified Diff: ui/aura_shell/drag_image_view.h

Issue 8450018: First shot at implementing drag&drop for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed windows build errors Created 9 years, 1 month 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
« no previous file with comments | « ui/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/aura_shell/drag_image_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/drag_image_view.h
diff --git a/ui/aura_shell/drag_image_view.h b/ui/aura_shell/drag_image_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..ecc665c53667103c5da3934d4bb6330d33501982
--- /dev/null
+++ b/ui/aura_shell/drag_image_view.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2011 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_AURA_SHELL_DRAG_IMAGE_VIEW_H_
+#define UI_AURA_SHELL_DRAG_IMAGE_VIEW_H_
+#pragma once
+
+#include "views/controls/image_view.h"
+
+namespace views {
+class Widget;
+}
+
+namespace aura_shell {
+namespace internal {
+
+class DragImageView : public views::ImageView {
+ public:
+ DragImageView();
+ virtual ~DragImageView();
+
+ // Sets the bounds of the native widget.
+ void SetScreenBounds(const gfx::Rect& bounds);
+
+ // Sets the position of the native widget.
+ void SetScreenPosition(const gfx::Point& position);
+
+ // Sets the visibility of the native widget.
+ void SetWidgetVisible(bool visible);
+
+ private:
+ scoped_ptr<views::Widget> widget_;
+
+ DISALLOW_COPY_AND_ASSIGN(DragImageView);
+};
+
+} // namespace internal
+} // namespace aura_shell
+
+#endif // UI_AURA_SHELL_DRAG_IMAGE_VIEW_H_
« no previous file with comments | « ui/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/aura_shell/drag_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698