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

Unified Diff: chrome/renderer/validation_message_agent.h

Issue 13160004: Re-implement form validation message UI with native widgets. (Common and Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adopt new Blink interface Created 7 years, 8 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
Index: chrome/renderer/validation_message_agent.h
diff --git a/chrome/renderer/validation_message_agent.h b/chrome/renderer/validation_message_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7975e60a3f679b77b0ae5620f2ef893038a7040
--- /dev/null
+++ b/chrome/renderer/validation_message_agent.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_
+#define CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_
+
+#include "content/public/renderer/render_view_observer.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebValidationMessageClient.h"
+
+namespace content {
+class RenderView;
+}
+
+class ValidationMessageAgent : public content::RenderViewObserver,
+ public WebKit::WebValidationMessageClient {
+ public:
+ explicit ValidationMessageAgent(content::RenderView* render_view);
+ virtual ~ValidationMessageAgent();
+
+ private:
+ // WebValidationMessageClient functions:
+ virtual void showValidationMessage(const WebKit::WebRect& anchor_in_screen,
+ const WebKit::WebString& main_text,
+ const WebKit::WebString& sub_text,
+ WebKit::WebTextDirection hint) OVERRIDE;
+ virtual void hideValidationMessage() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(ValidationMessageAgent);
+};
+
+#endif // CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_

Powered by Google App Engine
This is Rietveld 408576698