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

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

Issue 1518463002: Hides ink ripple when a button drag is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hides ink ripple when a button drag is started (-logs) Created 5 years 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
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/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 UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 virtual int OnDragUpdated(const ui::DropTargetEvent& event); 929 virtual int OnDragUpdated(const ui::DropTargetEvent& event);
930 930
931 // Invoked during a drag and drop session when the mouse exits the views, or 931 // Invoked during a drag and drop session when the mouse exits the views, or
932 // when the drag session was canceled and the mouse was over the view. 932 // when the drag session was canceled and the mouse was over the view.
933 virtual void OnDragExited(); 933 virtual void OnDragExited();
934 934
935 // Invoked during a drag and drop session when OnDragUpdated returns a valid 935 // Invoked during a drag and drop session when OnDragUpdated returns a valid
936 // operation and the user release the mouse. 936 // operation and the user release the mouse.
937 virtual int OnPerformDrop(const ui::DropTargetEvent& event); 937 virtual int OnPerformDrop(const ui::DropTargetEvent& event);
938 938
939 // Invoked from DoDrag when the drag starts. This implementation does
940 // nothing, and is intended for subclasses to do setup.
941 virtual void OnDragStarted(const ui::LocatedEvent& event);
942
939 // Invoked from DoDrag after the drag completes. This implementation does 943 // Invoked from DoDrag after the drag completes. This implementation does
940 // nothing, and is intended for subclasses to do cleanup. 944 // nothing, and is intended for subclasses to do cleanup.
941 virtual void OnDragDone(); 945 virtual void OnDragDone();
942 946
943 // Returns true if the mouse was dragged enough to start a drag operation. 947 // Returns true if the mouse was dragged enough to start a drag operation.
944 // delta_x and y are the distance the mouse was dragged. 948 // delta_x and y are the distance the mouse was dragged.
945 static bool ExceededDragThreshold(const gfx::Vector2d& delta); 949 static bool ExceededDragThreshold(const gfx::Vector2d& delta);
946 950
947 // Accessibility ------------------------------------------------------------- 951 // Accessibility -------------------------------------------------------------
948 952
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 // Belongs to this view, but it's reference-counted on some platforms 1571 // Belongs to this view, but it's reference-counted on some platforms
1568 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1572 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1569 NativeViewAccessibility* native_view_accessibility_; 1573 NativeViewAccessibility* native_view_accessibility_;
1570 1574
1571 DISALLOW_COPY_AND_ASSIGN(View); 1575 DISALLOW_COPY_AND_ASSIGN(View);
1572 }; 1576 };
1573 1577
1574 } // namespace views 1578 } // namespace views
1575 1579
1576 #endif // UI_VIEWS_VIEW_H_ 1580 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698