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

Issue 13160004: Re-implement form validation message UI with native widgets. (Common and Mac) (Closed)

Created:
7 years, 9 months ago by tkent
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, tfarina, sail+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Re-implement form validation message UI with native widgets. (Common and Mac) The current form validation message UI with Shadow DOM has a lot of problems and some of them are unresolvable if we continue to use Shadow DOM. We should stop using Shadow DOM. This patch implements a platform-indepedent part of WebKit::WebValidationMessageClient, and the Mac part. - Introduce ValidationMessageAgent, which implements WebKit::WebValidationMessageClient and lives in a renderer process of the chrome module. It dispatches IPC messages to the browser process. ValidationMessageAgent is used only on Mac for now. - ValidationMessageFilter receives the IPC messages in the browser process, and instructs to show/hide validation message UI. - Add common interface to control validation message UI validation_message_bubble.h - Add skelton implementations for non-Mac and a real implementation for Mac validation_message_bubble_*.* BUG=90252, 90958, 92816, 104829, 106621, 113352, 115451, 125330, 143356, 146212, 155448, 166981, 231170 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197226

Patch Set 1 : typo in skelton implmentations #

Patch Set 2 : Adopt new Blink interface #

Total comments: 20

Patch Set 3 : adddress review comments, and add a test #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -1 line) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/validation_message_bubble_android.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller.mm View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
A chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm View 1 2 1 chunk +178 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/validation_message_bubble_controller.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/validation_message_bubble_controller_unittest.mm View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/gtk/validation_message_bubble_gtk.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/ui/validation_message_bubble.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/validation_message_bubble_view.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/validation_message_message_filter.h View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/validation_message_message_filter.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 5 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/validation_message_messages.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/renderer/validation_message_agent.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/renderer/validation_message_agent.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tkent
7 years, 8 months ago (2013-03-29 01:07:07 UTC) #1
jam
the content plumbing seems unnecessary. i.e. you can have a separate WebKit client interface, like ...
7 years, 8 months ago (2013-03-29 16:48:40 UTC) #2
tkent
On 2013/03/29 16:48:40, jam wrote: > the content plumbing seems unnecessary. i.e. you can have ...
7 years, 8 months ago (2013-04-01 03:17:24 UTC) #3
tkent
On 2013/04/01 03:17:24, tkent wrote: > On 2013/03/29 16:48:40, jam wrote: > > the content ...
7 years, 8 months ago (2013-04-08 21:18:08 UTC) #4
darin (slow to review)
I've generally just added sections to WebViewClient to keep the interface count to a minimum. ...
7 years, 8 months ago (2013-04-10 18:03:06 UTC) #5
jam
On 2013/04/01 03:17:24, tkent wrote: > On 2013/03/29 16:48:40, jam wrote: > > the content ...
7 years, 8 months ago (2013-04-11 17:17:35 UTC) #6
tkent
On 2013/04/11 17:17:35, jam wrote: > the issue is where you want the implementation to ...
7 years, 8 months ago (2013-04-12 04:22:27 UTC) #7
tkent
Hi everyone, I uploaded new patch, which does not modify the content module at all. ...
7 years, 8 months ago (2013-04-22 21:34:09 UTC) #8
tkent
7 years, 8 months ago (2013-04-23 21:20:42 UTC) #9
tkent
thakis, ben, would you review changes in chrome/ please? cevans, would you check new IPC ...
7 years, 8 months ago (2013-04-24 23:28:11 UTC) #10
Nico
Sorry for the delay. This looks really good. Can you add some test coverage for ...
7 years, 8 months ago (2013-04-25 22:57:49 UTC) #11
tkent
https://codereview.chromium.org/13160004/diff/25001/chrome/browser/ui/cocoa/base_bubble_controller.h File chrome/browser/ui/cocoa/base_bubble_controller.h (right): https://codereview.chromium.org/13160004/diff/25001/chrome/browser/ui/cocoa/base_bubble_controller.h#newcode40 chrome/browser/ui/cocoa/base_bubble_controller.h:40: bool shouldOpenKeyWindow_; On 2013/04/25 22:57:49, Nico wrote: > shouldOpenAsKeyWindow_ ...
7 years, 7 months ago (2013-04-29 22:24:19 UTC) #12
Nico
lgtm! https://codereview.chromium.org/13160004/diff/44001/chrome/browser/ui/cocoa/base_bubble_controller.mm File chrome/browser/ui/cocoa/base_bubble_controller.mm (right): https://codereview.chromium.org/13160004/diff/44001/chrome/browser/ui/cocoa/base_bubble_controller.mm#newcode40 chrome/browser/ui/cocoa/base_bubble_controller.mm:40: anchor_ = anchoredAt; Nit: All other members are ...
7 years, 7 months ago (2013-04-29 22:35:48 UTC) #13
tkent
thakis, would you take another look please? cevans, would you check new IPC messages please? ...
7 years, 7 months ago (2013-04-29 22:37:29 UTC) #14
tkent
On 2013/04/29 22:37:29, tkent wrote: > thakis, would you take another look please? Oh, Nico ...
7 years, 7 months ago (2013-04-29 22:40:02 UTC) #15
tkent
https://codereview.chromium.org/13160004/diff/44001/chrome/browser/ui/cocoa/base_bubble_controller.mm File chrome/browser/ui/cocoa/base_bubble_controller.mm (right): https://codereview.chromium.org/13160004/diff/44001/chrome/browser/ui/cocoa/base_bubble_controller.mm#newcode40 chrome/browser/ui/cocoa/base_bubble_controller.mm:40: anchor_ = anchoredAt; On 2013/04/29 22:35:48, Nico wrote: > ...
7 years, 7 months ago (2013-04-29 23:08:01 UTC) #16
tkent
Adding more reviewers for ipc_message_start.h.
7 years, 7 months ago (2013-04-29 23:10:02 UTC) #17
Tom Sepez
Messages LGTM.
7 years, 7 months ago (2013-04-29 23:14:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/13160004/56001
7 years, 7 months ago (2013-04-29 23:28:55 UTC) #19
commit-bot: I haz the power
7 years, 7 months ago (2013-04-30 02:30:28 UTC) #20
Message was sent while issue was closed.
Change committed as 197226

Powered by Google App Engine
This is Rietveld 408576698