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

Side by Side Diff: ui/views/widget/widget.h

Issue 11368072: aura: Add flag to indicate if a drag session is started with touch or mouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 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/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.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 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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698