Description[Mac] Adjust omnibox decoration dragging to keep image under mouse.
LocationBarDecoration::GetDragImageFrame() added to let decorations
specify where their GetDragImage() image is in the decoration. The
mouse-down code ensures that the mouse drags from the expected point
within that area, or centeres the image under the mouse if the drag is
from somewhere else in the decoration.
Additionally tracked down why -isFlipped affected the drag point and
rewrote the code to be -isFlipped agnostic.
BUG=49102, 40771
TEST=Goto https://www.thawte.com/. Drag from ev text, lock icon should be under cursor.
TEST=drag from location or lock icon should drag from point in icon mouse click was in.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52959
Patch Set 1 #
Total comments: 8
Patch Set 2 : Comment-tweaking for Trung. #
Total comments: 2
Patch Set 3 : Move method per Trung. #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||