Chromium Code Reviews
DescriptionSome improvement of validation message bubble UI.
* Change anchor position arguments of some functions from the screen
coordinate system to the root view coordinate system. Blink can't
provide a rectangle in the screen coordinate on Android, and we'd like
to make it consistent. Each of validation message UI implementation
converts the anchor postion to the screen coordinate.
* Support WebValidationMessageClient::moveValidationMessage.
Add functions to ValidationMessageAgent, ValidationmessageFilter, and
ValidationMessageBubble classes, and add new IPC message to
validation_message_messages.h.
Changs for platform-specific files:
* chrome/browser/ui/android/:
Just rename argument names; anchor_in_screen -> anchor_in_root_view
* chrome/browser/ui/cocoa/:
Implement SetPositionRelativeToAnchor, add a helper function
* chrome/browser/ui/gtk/:
Add BubbleGtk::SetPositionRelativeToAnchor, and use it for
ValidationMessageBubble::SetPositionRelativeToAnchor implementation
* chrome/browser/ui/views/:
Add SetPositionRelativeToAnchor implementation.
Also, fixes a bug that ValidationMessageBubbleDelegate is never
destructed because Hide() won't call DeleteDelegate. We should call
Close().
BUG=146212
R=estade@chromium.org, sky@chromium.org, thakis@chromium.org, tsepez@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205723
Patch Set 1 : #
Total comments: 12
Patch Set 2 : renaming #
Total comments: 10
Patch Set 3 : nits #Messages
Total messages: 15 (0 generated)
|