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

Side by Side Diff: ash/shelf/shelf_view.h

Issue 338833008: Require the cursor to move a minimum distance after the mouse press before initiating a mouse drag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | ash/shelf/shelf_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_SHELF_SHELF_VIEW_H_ 5 #ifndef ASH_SHELF_SHELF_VIEW_H_
6 #define ASH_SHELF_SHELF_VIEW_H_ 6 #define ASH_SHELF_SHELF_VIEW_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 scoped_ptr<ShelfTooltipManager> tooltip_; 351 scoped_ptr<ShelfTooltipManager> tooltip_;
352 352
353 // Pointer device that initiated the current drag operation. If there is no 353 // Pointer device that initiated the current drag operation. If there is no
354 // current dragging operation, this is NONE. 354 // current dragging operation, this is NONE.
355 Pointer drag_pointer_; 355 Pointer drag_pointer_;
356 356
357 // The view being dragged. This is set immediately when the mouse is pressed. 357 // The view being dragged. This is set immediately when the mouse is pressed.
358 // |dragging_| is set only if the mouse is dragged far enough. 358 // |dragging_| is set only if the mouse is dragged far enough.
359 views::View* drag_view_; 359 views::View* drag_view_;
360 360
361 // X coordinate of the mouse down event in |drag_view_|s coordinates. 361 // Position of the mouse down event in |drag_view_|'s coordinates.
362 int drag_offset_; 362 gfx::Point drag_origin_;
363 363
364 // Index |drag_view_| was initially at. 364 // Index |drag_view_| was initially at.
365 int start_drag_index_; 365 int start_drag_index_;
366 366
367 // Used for the context menu of a particular item. 367 // Used for the context menu of a particular item.
368 ShelfID context_menu_id_; 368 ShelfID context_menu_id_;
369 369
370 scoped_ptr<views::FocusSearch> focus_search_; 370 scoped_ptr<views::FocusSearch> focus_search_;
371 371
372 scoped_ptr<ui::MenuModel> list_menu_model_; 372 scoped_ptr<ui::MenuModel> list_menu_model_;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 // True when ripped item from overflow bubble is entered into Shelf. 442 // True when ripped item from overflow bubble is entered into Shelf.
443 bool dragged_off_from_overflow_to_shelf_; 443 bool dragged_off_from_overflow_to_shelf_;
444 444
445 DISALLOW_COPY_AND_ASSIGN(ShelfView); 445 DISALLOW_COPY_AND_ASSIGN(ShelfView);
446 }; 446 };
447 447
448 } // namespace ash 448 } // namespace ash
449 449
450 #endif // ASH_SHELF_SHELF_VIEW_H_ 450 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698