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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_AURA_SHELL_DRAG_IMAGE_VIEW_H_
6 #define UI_AURA_SHELL_DRAG_IMAGE_VIEW_H_
7 #pragma once
8
9 #include "views/controls/image_view.h"
10
11 namespace views {
12 class Widget;
13 }
14
15 namespace aura_shell {
16 namespace internal {
17
18 class DragImageView : public views::ImageView {
19 public:
20 DragImageView();
21 virtual ~DragImageView();
22
23 // Sets the bounds of the native widget.
24 void SetScreenBounds(const gfx::Rect& bounds);
25
26 // Sets the position of the native widget.
27 void SetScreenPosition(const gfx::Point& position);
28
29 // Sets the visibility of the native widget.
30 void SetWidgetVisible(bool visible);
31
32 private:
33 scoped_ptr<views::Widget> widget_;
34
35 DISALLOW_COPY_AND_ASSIGN(DragImageView);
36 };
37
38 } // namespace internal
39 } // namespace aura_shell
40
41 #endif // UI_AURA_SHELL_DRAG_IMAGE_VIEW_H_
OLDNEW
« 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