OLD | NEW |
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 UI_VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <stack> | 9 #include <stack> |
10 #include <vector> | 10 #include <vector> |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 445 |
446 // Starts a drag operation for the specified view. This blocks until the drag | 446 // Starts a drag operation for the specified view. This blocks until the drag |
447 // operation completes. |view| can be NULL. | 447 // operation completes. |view| can be NULL. |
448 // If the view is non-NULL it can be accessed during the drag by calling | 448 // If the view is non-NULL it can be accessed during the drag by calling |
449 // dragged_view(). If the view has not been deleted during the drag, | 449 // dragged_view(). If the view has not been deleted during the drag, |
450 // OnDragDone() is called on it. |location| is in the widget's coordinate | 450 // OnDragDone() is called on it. |location| is in the widget's coordinate |
451 // system. | 451 // system. |
452 void RunShellDrag(View* view, | 452 void RunShellDrag(View* view, |
453 const ui::OSExchangeData& data, | 453 const ui::OSExchangeData& data, |
454 const gfx::Point& location, | 454 const gfx::Point& location, |
455 int operation); | 455 int operation, |
| 456 ui::DragDropTypes::DragEventSource source); |
456 | 457 |
457 // Returns the view that requested the current drag operation via | 458 // Returns the view that requested the current drag operation via |
458 // RunShellDrag(), or NULL if there is no such view or drag operation. | 459 // RunShellDrag(), or NULL if there is no such view or drag operation. |
459 View* dragged_view() { return dragged_view_; } | 460 View* dragged_view() { return dragged_view_; } |
460 | 461 |
461 // Adds the specified |rect| in client area coordinates to the rectangle to be | 462 // Adds the specified |rect| in client area coordinates to the rectangle to be |
462 // redrawn. | 463 // redrawn. |
463 void SchedulePaintInRect(const gfx::Rect& rect); | 464 void SchedulePaintInRect(const gfx::Rect& rect); |
464 | 465 |
465 // Sets the currently visible cursor. If |cursor| is NULL, the cursor used | 466 // Sets the currently visible cursor. If |cursor| is NULL, the cursor used |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 803 |
803 // Is |root_layers_| out of date? | 804 // Is |root_layers_| out of date? |
804 bool root_layers_dirty_; | 805 bool root_layers_dirty_; |
805 | 806 |
806 DISALLOW_COPY_AND_ASSIGN(Widget); | 807 DISALLOW_COPY_AND_ASSIGN(Widget); |
807 }; | 808 }; |
808 | 809 |
809 } // namespace views | 810 } // namespace views |
810 | 811 |
811 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 812 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |