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

Issue 16583005: Some improvement of validation message bubble UI. (Closed)

Created:
7 years, 6 months ago by tkent
Modified:
7 years, 6 months ago
Reviewers:
Tom Sepez, Nico, sky, Evan Stade
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Some 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -50 lines) Patch
M chrome/browser/ui/android/validation_message_bubble_android.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/validation_message_bubble_android.cc View 1 4 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm View 1 2 5 chunks +27 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/bubble/bubble_gtk.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/bubble/bubble_gtk.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/validation_message_bubble_gtk.cc View 1 4 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/ui/validation_message_bubble.h View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/validation_message_bubble_delegate.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/validation_message_bubble_delegate.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/validation_message_bubble_view.cc View 1 2 3 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/validation_message_message_filter.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/validation_message_message_filter.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/common/validation_message_messages.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/renderer/validation_message_agent.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/validation_message_agent.cc View 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tkent
This CL requires a blink change which is not landed yet. https://codereview.chromium.org/16180009/ thakis, would you ...
7 years, 6 months ago (2013-06-07 05:51:15 UTC) #1
Nico
Looks generally good. https://codereview.chromium.org/16583005/diff/11001/chrome/browser/ui/android/validation_message_bubble_android.h File chrome/browser/ui/android/validation_message_bubble_android.h (right): https://codereview.chromium.org/16583005/diff/11001/chrome/browser/ui/android/validation_message_bubble_android.h#newcode31 chrome/browser/ui/android/validation_message_bubble_android.h:31: virtual void MoveOnAnchor(content::RenderWidgetHost* widget_host, nit: It's ...
7 years, 6 months ago (2013-06-07 16:35:31 UTC) #2
sky
What files did you need me to review? https://codereview.chromium.org/16583005/diff/11001/chrome/browser/ui/validation_message_bubble.h File chrome/browser/ui/validation_message_bubble.h (right): https://codereview.chromium.org/16583005/diff/11001/chrome/browser/ui/validation_message_bubble.h#newcode34 chrome/browser/ui/validation_message_bubble.h:34: // ...
7 years, 6 months ago (2013-06-07 17:52:52 UTC) #3
tkent
> What files did you need me to review? Would you review the following files ...
7 years, 6 months ago (2013-06-10 06:15:37 UTC) #4
sky
LGTM https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/views/validation_message_bubble_view.cc File chrome/browser/ui/views/validation_message_bubble_view.cc (right): https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/views/validation_message_bubble_view.cc#newcode67 chrome/browser/ui/views/validation_message_bubble_view.cc:67: const gfx::Rect& anchor_in_screen = anchor_in_root_view const gfx::Rect& -> ...
7 years, 6 months ago (2013-06-10 14:48:28 UTC) #5
Nico
lgtm! https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm File chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm (right): https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm#newcode144 chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm:144: static_cast<BaseView*>(widget_host->GetView()->GetNativeView()); consider base::mac::ObjCCastStrict<> instead of static_cast<> https://codereview.chromium.org/16583005/diff/40001/chrome/renderer/validation_message_agent.h File ...
7 years, 6 months ago (2013-06-10 14:51:40 UTC) #6
Evan Stade
gtk lgtm https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/gtk/bubble/bubble_gtk.cc File chrome/browser/ui/gtk/bubble/bubble_gtk.cc (right): https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/gtk/bubble/bubble_gtk.cc#newcode562 chrome/browser/ui/gtk/bubble/bubble_gtk.cc:562: if (!UpdateFrameStyle(false)) { nit: no curlies https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/views/validation_message_bubble_view.cc ...
7 years, 6 months ago (2013-06-10 19:30:02 UTC) #7
tkent
https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm File chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm (right): https://codereview.chromium.org/16583005/diff/40001/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm#newcode144 chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm:144: static_cast<BaseView*>(widget_host->GetView()->GetNativeView()); On 2013/06/10 14:51:40, Nico wrote: > consider base::mac::ObjCCastStrict<> ...
7 years, 6 months ago (2013-06-11 07:02:43 UTC) #8
tkent
tsepez, would you review chrome/common/validation_message_messages.h please?
7 years, 6 months ago (2013-06-11 07:07:41 UTC) #9
Tom Sepez
lgtm
7 years, 6 months ago (2013-06-11 17:32:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/16583005/64001
7 years, 6 months ago (2013-06-11 21:51:56 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-12 00:00:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/16583005/64001
7 years, 6 months ago (2013-06-12 00:12:18 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-12 04:21:18 UTC) #14
tkent
7 years, 6 months ago (2013-06-12 04:30:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 manually as r205723 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698