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

Unified Diff: chrome/renderer/validation_message_agent.cc

Issue 16583005: Some improvement of validation message bubble UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/validation_message_agent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/validation_message_agent.cc
diff --git a/chrome/renderer/validation_message_agent.cc b/chrome/renderer/validation_message_agent.cc
index ed7326a762ec8901b3f3ea9c1a00513d704152a2..bbfe655bb832f0c16accc7cc8a74bfa27bd36cbb 100644
--- a/chrome/renderer/validation_message_agent.cc
+++ b/chrome/renderer/validation_message_agent.cc
@@ -18,7 +18,7 @@ ValidationMessageAgent::ValidationMessageAgent(content::RenderView* render_view)
ValidationMessageAgent::~ValidationMessageAgent() {}
void ValidationMessageAgent::showValidationMessage(
- const WebKit::WebRect& anchor_in_screen,
+ const WebKit::WebRect& anchor_in_root_view,
const WebKit::WebString& main_text,
const WebKit::WebString& sub_text,
WebKit::WebTextDirection hint) {
@@ -40,10 +40,16 @@ void ValidationMessageAgent::showValidationMessage(
}
Send(new ValidationMessageMsg_ShowValidationMessage(
- routing_id(), anchor_in_screen, wrapped_main_text, wrapped_sub_text));
+ routing_id(), anchor_in_root_view, wrapped_main_text, wrapped_sub_text));
}
void ValidationMessageAgent::hideValidationMessage() {
Send(new ValidationMessageMsg_HideValidationMessage());
}
+void ValidationMessageAgent::moveValidationMessage(
+ const WebKit::WebRect& anchor_in_root_view) {
+ Send(new ValidationMessageMsg_MoveValidationMessage(
+ routing_id(), anchor_in_root_view));
+}
+
« no previous file with comments | « chrome/renderer/validation_message_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698