| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 
|  | 2 // Use of this source code is governed by a BSD-style license that can be | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #ifndef CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_ | 
|  | 6 #define CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_ | 
|  | 7 | 
|  | 8 #include "content/public/renderer/render_view_observer.h" | 
|  | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebValidationMessageC
    lient.h" | 
|  | 10 | 
|  | 11 namespace content { | 
|  | 12 class RenderView; | 
|  | 13 } | 
|  | 14 | 
|  | 15 class ValidationMessageAgent : public content::RenderViewObserver, | 
|  | 16                                public WebKit::WebValidationMessageClient { | 
|  | 17  public: | 
|  | 18   explicit ValidationMessageAgent(content::RenderView* render_view); | 
|  | 19   virtual ~ValidationMessageAgent(); | 
|  | 20 | 
|  | 21  private: | 
|  | 22   // WebValidationMessageClient functions: | 
|  | 23   virtual void showValidationMessage(const WebKit::WebRect& anchor_in_screen, | 
|  | 24                                      const WebKit::WebString& main_text, | 
|  | 25                                      const WebKit::WebString& sub_text, | 
|  | 26                                      WebKit::WebTextDirection hint) OVERRIDE; | 
|  | 27   virtual void hideValidationMessage() OVERRIDE; | 
|  | 28 | 
|  | 29   DISALLOW_COPY_AND_ASSIGN(ValidationMessageAgent); | 
|  | 30 }; | 
|  | 31 | 
|  | 32 #endif  // CHROME_RENDERER_VALIDATION_MESSAGE_AGENT_H_ | 
| OLD | NEW | 
|---|