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

Side by Side Diff: ash/drag_drop/drag_image_view.h

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/drag_drop/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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ 5 #ifndef ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_
6 #define ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ 6 #define ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_
7 7
8 #include "ui/views/controls/image_view.h" 8 #include "ui/views/controls/image_view.h"
9 9
10 namespace views { 10 namespace views {
11 class Widget; 11 class Widget;
12 } 12 }
13 13
14 namespace ash { 14 namespace ash {
15 namespace internal { 15 namespace internal {
16 16
17 class DragImageView : public views::ImageView { 17 class DragImageView : public views::ImageView {
18 public: 18 public:
19 DragImageView(); 19 DragImageView();
20 virtual ~DragImageView(); 20 virtual ~DragImageView();
21 21
22 // Sets the bounds of the native widget. 22 // Sets the bounds of the native widget in screen
23 void SetScreenBounds(const gfx::Rect& bounds); 23 // coordinates.
24 // TODO(oshima): Looks like this is root window's
25 // coordinate. Change this to screen's coordinate.
26 void SetBoundsInScreen(const gfx::Rect& bounds);
24 27
25 // Sets the position of the native widget. 28 // Sets the position of the native widget.
26 void SetScreenPosition(const gfx::Point& position); 29 void SetScreenPosition(const gfx::Point& position);
27 30
28 // Sets the visibility of the native widget. 31 // Sets the visibility of the native widget.
29 void SetWidgetVisible(bool visible); 32 void SetWidgetVisible(bool visible);
30 33
31 private: 34 private:
32 scoped_ptr<views::Widget> widget_; 35 scoped_ptr<views::Widget> widget_;
33 36
34 DISALLOW_COPY_AND_ASSIGN(DragImageView); 37 DISALLOW_COPY_AND_ASSIGN(DragImageView);
35 }; 38 };
36 39
37 } // namespace internal 40 } // namespace internal
38 } // namespace ash 41 } // namespace ash
39 42
40 #endif // ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ 43 #endif // ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/drag_drop/drag_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698