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

Unified Diff: chrome/browser/validation_message_message_filter.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/browser/validation_message_message_filter.h
diff --git a/chrome/browser/validation_message_message_filter.h b/chrome/browser/validation_message_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..f675e87c02c82f309aa6a1d6b6aad53867bd884d
--- /dev/null
+++ b/chrome/browser/validation_message_message_filter.h
@@ -0,0 +1,42 @@
+// 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_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_
+#define CHROME_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_
+
+#include "content/public/browser/browser_message_filter.h"
+
+namespace chrome {
+class ValidationMessageBubble;
+}
+
+namespace gfx {
+class Rect;
+}
+
+class ValidationMessageMessageFilter : public content::BrowserMessageFilter {
Nico 2013/04/25 22:57:49 Class comment
tkent 2013/04/29 22:24:19 Done.
+ public:
+ explicit ValidationMessageMessageFilter(int renderer_id);
+
+ // content::BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+ virtual void OverrideThreadForMessage(
+ const IPC::Message& message, content::BrowserThread::ID* thread) OVERRIDE;
+
+ private:
+ virtual ~ValidationMessageMessageFilter();
+ void OnShowValidationMessage(int route_id,
+ const gfx::Rect& anchor_in_screen,
+ const string16& main_text,
+ const string16& sub_text);
+ void OnHideValidationMessage();
+
+ scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_;
+ int renderer_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(ValidationMessageMessageFilter);
+};
+
+#endif // CHROME_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698