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

Side by Side Diff: public/webpage/WebValidationMessageClient.h

Issue 16180009: Improve WebValidationMessageClient interface and implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebKit/chromium/src/ValidationMessageClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 37
38 class WebString; 38 class WebString;
39 struct WebRect; 39 struct WebRect;
40 40
41 // Client interface to handle form validation message UI. 41 // Client interface to handle form validation message UI.
42 class WebValidationMessageClient { 42 class WebValidationMessageClient {
43 public: 43 public:
44 // Show a notification popup for the specified form vaidation messages 44 // Show a notification popup for the specified form vaidation messages
45 // besides the anchor rectangle. An implementation of this function should 45 // besides the anchor rectangle. An implementation of this function should
46 // not hide the popup until hideValidationMessage call. 46 // not hide the popup until hideValidationMessage call.
47 virtual void showValidationMessage(const WebRect& anchorInScreen, const WebS tring& mainText, const WebString& supplementalText, WebTextDirection hint) { } 47 virtual void showValidationMessage(const WebRect& anchorInRootView, const We bString& mainText, const WebString& supplementalText, WebTextDirection hint) { }
48 48
49 // Hide notifation popup for form validation messages. 49 // Hide notifation popup for form validation messages.
50 virtual void hideValidationMessage() { } 50 virtual void hideValidationMessage() { }
51 51
52 // Move the existing notifation popup for the new anchor position.
53 virtual void moveValidationMessage(const WebRect& anchorInRootView) { }
52 54
53 protected: 55 protected:
54 virtual ~WebValidationMessageClient() { } 56 virtual ~WebValidationMessageClient() { }
55 }; 57 };
56 58
57 } // namespace WebKit 59 } // namespace WebKit
58 60
59 #endif 61 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/ValidationMessageClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698