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

Side by Side Diff: Source/core/page/ValidationMessageClient.h

Issue 389343002: Custom validation message to take into account text direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Compilation and Levi's firstStrong changes Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 class Document; 34 class Document;
35 class Element; 35 class Element;
36 36
37 class ValidationMessageClient : public WillBeGarbageCollectedMixin { 37 class ValidationMessageClient : public WillBeGarbageCollectedMixin {
38 public: 38 public:
39 virtual ~ValidationMessageClient() { } 39 virtual ~ValidationMessageClient() { }
40 40
41 // Show validation message for the specified anchor element. An 41 // Show validation message for the specified anchor element. An
42 // implementation of this function may hide the message automatically after 42 // implementation of this function may hide the message automatically after
43 // some period. 43 // some period.
44 virtual void showValidationMessage(const Element& anchor, const String& mess age) = 0; 44 virtual void showValidationMessage(const Element& anchor, const String& mess age, bool customError) = 0;
leviw_travelin_and_unemployed 2014/07/16 04:26:22 boolean parameters make me sad. Can we use somethi
Habib Virji 2014/07/16 13:32:02 I have introduced enum type and removed boolean no
45 45
46 // Hide validation message for the specified anchor if the message for the 46 // Hide validation message for the specified anchor if the message for the
47 // anchor is already visible. 47 // anchor is already visible.
48 virtual void hideValidationMessage(const Element& anchor) = 0; 48 virtual void hideValidationMessage(const Element& anchor) = 0;
49 49
50 // Returns true if the validation message for the specified anchor element 50 // Returns true if the validation message for the specified anchor element
51 // is visible. 51 // is visible.
52 virtual bool isValidationMessageVisible(const Element& anchor) = 0; 52 virtual bool isValidationMessageVisible(const Element& anchor) = 0;
53 53
54 virtual void documentDetached(const Document&) = 0; 54 virtual void documentDetached(const Document&) = 0;
55 55
56 virtual void willBeDestroyed() = 0; 56 virtual void willBeDestroyed() = 0;
57 57
58 virtual void trace(Visitor*) { } 58 virtual void trace(Visitor*) { }
59 }; 59 };
60 60
61 } 61 }
62 62
63 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698