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

Issue 14627004: Re-implement form validation message UI with native widgets (Views) (Closed)

Created:
7 years, 7 months ago by tkent
Modified:
7 years, 7 months ago
Reviewers:
Nico, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Re-implement form validation message UI with native widgets (Views) This CL adds Views implementation of ValidationMessageBubble, and enable ValidationMessageAgent for platforms with TOOLKIT_VIEWS. Also, we can remove a #if in chrome_content_browser_client.cc. Messages handled by ValidationMessageFilter are sent only in platforms which matches to #if in ValidationMessageAgent. BUG=90252, 90958, 92816, 104829, 106621, 113352, 115451, 125330, 143356, 155448, 162440, 166981, 231170, 235719 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197786

Patch Set 1 : Linux build #

Total comments: 28

Patch Set 2 : address review comments #

Total comments: 8

Patch Set 3 : delegate validity #

Total comments: 8

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -9 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +0 lines, -3 lines 0 comments Download
A chrome/browser/ui/views/validation_message_bubble_delegate.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/validation_message_bubble_delegate.cc View 1 2 3 1 chunk +98 lines, -0 lines 1 comment Download
A chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/validation_message_bubble_view.cc View 1 2 1 chunk +47 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/validation_message_agent.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tkent
thakis@, sky@, would you review this please?
7 years, 7 months ago (2013-04-30 09:24:14 UTC) #1
tkent
This is a Views implementation for https://chromiumcodereview.appspot.com/13160004/
7 years, 7 months ago (2013-04-30 09:25:31 UTC) #2
sky
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc#oldcode730 chrome/browser/chrome_content_browser_client.cc:730: #if defined(OS_MACOSX) I don't see a gtk implementation. How ...
7 years, 7 months ago (2013-04-30 13:53:20 UTC) #3
tkent
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc#oldcode730 chrome/browser/chrome_content_browser_client.cc:730: #if defined(OS_MACOSX) On 2013/04/30 13:53:21, sky wrote: > I ...
7 years, 7 months ago (2013-05-01 03:15:02 UTC) #4
tkent
I have updated the patch. Would you take another look please?
7 years, 7 months ago (2013-05-01 03:18:14 UTC) #5
sky
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc#oldcode730 chrome/browser/chrome_content_browser_client.cc:730: #if defined(OS_MACOSX) On 2013/05/01 03:15:02, tkent wrote: > On ...
7 years, 7 months ago (2013-05-01 04:35:53 UTC) #6
tkent
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/chrome_content_browser_client.cc#oldcode730 chrome/browser/chrome_content_browser_client.cc:730: #if defined(OS_MACOSX) It's not needed. We may keep the ...
7 years, 7 months ago (2013-05-01 04:50:12 UTC) #7
sky
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc File chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc (right): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc#newcode20 chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc:20: EXPECT_GT(shortMainEmptySubSize.width(), 40); On 2013/05/01 03:15:02, tkent wrote: > On ...
7 years, 7 months ago (2013-05-01 14:05:05 UTC) #8
tkent
https://codereview.chromium.org/14627004/diff/7001/chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc File chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc (right): https://codereview.chromium.org/14627004/diff/7001/chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc#newcode20 chrome/browser/ui/views/validation_message_bubble_delegate_unittest.cc:20: EXPECT_GT(shortMainEmptySubSize.width(), 40); On 2013/05/01 14:05:05, sky wrote: > On ...
7 years, 7 months ago (2013-05-01 21:42:30 UTC) #9
tkent
I have updated the patch. Please take another look.
7 years, 7 months ago (2013-05-01 21:44:00 UTC) #10
sky
LGTM with the following fixes. https://codereview.chromium.org/14627004/diff/26001/chrome/browser/ui/views/validation_message_bubble_delegate.cc File chrome/browser/ui/views/validation_message_bubble_delegate.cc (right): https://codereview.chromium.org/14627004/diff/26001/chrome/browser/ui/views/validation_message_bubble_delegate.cc#newcode13 chrome/browser/ui/views/validation_message_bubble_delegate.cc:13: const int ValidationMessageBubbleDelegate::kWindowMinWidth = ...
7 years, 7 months ago (2013-05-01 23:14:48 UTC) #11
tkent
Thank you! https://codereview.chromium.org/14627004/diff/26001/chrome/browser/ui/views/validation_message_bubble_delegate.cc File chrome/browser/ui/views/validation_message_bubble_delegate.cc (right): https://codereview.chromium.org/14627004/diff/26001/chrome/browser/ui/views/validation_message_bubble_delegate.cc#newcode13 chrome/browser/ui/views/validation_message_bubble_delegate.cc:13: const int ValidationMessageBubbleDelegate::kWindowMinWidth = 64; On 2013/05/01 ...
7 years, 7 months ago (2013-05-01 23:42:16 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/14627004/30001
7 years, 7 months ago (2013-05-01 23:43:01 UTC) #13
commit-bot: I haz the power
Change committed as 197786
7 years, 7 months ago (2013-05-02 02:17:44 UTC) #14
Nico
7 years, 7 months ago (2013-05-02 16:52:29 UTC) #15
Message was sent while issue was closed.
No need to change anything for the comment below, it's just fyi.

https://chromiumcodereview.appspot.com/14627004/diff/30001/chrome/browser/ui/...
File chrome/browser/ui/views/validation_message_bubble_delegate.cc (right):

https://chromiumcodereview.appspot.com/14627004/diff/30001/chrome/browser/ui/...
chrome/browser/ui/views/validation_message_bubble_delegate.cc:17: static const
int kPadding = 0;
fyi: const has implicit internal linkage, so there's no need to explicitly write
"static" before it (or put it in an unnamed namespace).

Powered by Google App Engine
This is Rietveld 408576698