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

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

Issue 2956593003: Revert of Move navigation-induced hiding of form-validation-bubble to the browser process. (Closed)
Patch Set: Created 3 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
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 14 matching lines...) Expand all
25 25
26 #ifndef ValidationMessageClient_h 26 #ifndef ValidationMessageClient_h
27 #define ValidationMessageClient_h 27 #define ValidationMessageClient_h
28 28
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 #include "platform/text/TextDirection.h" 30 #include "platform/text/TextDirection.h"
31 #include "platform/wtf/Forward.h" 31 #include "platform/wtf/Forward.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class Document;
35 class Element; 36 class Element;
36 37
37 class ValidationMessageClient : public GarbageCollectedMixin { 38 class ValidationMessageClient : public GarbageCollectedMixin {
38 public: 39 public:
39 virtual ~ValidationMessageClient() {} 40 virtual ~ValidationMessageClient() {}
40 41
41 // Show validation message for the specified anchor element. An 42 // Show validation message for the specified anchor element. An
42 // implementation of this function may hide the message automatically after 43 // implementation of this function may hide the message automatically after
43 // some period. 44 // some period.
44 virtual void ShowValidationMessage(const Element& anchor, 45 virtual void ShowValidationMessage(const Element& anchor,
45 const String& main_message, 46 const String& main_message,
46 TextDirection, 47 TextDirection,
47 const String& sub_message, 48 const String& sub_message,
48 TextDirection) = 0; 49 TextDirection) = 0;
49 50
50 // Hide validation message for the specified anchor if the message for the 51 // Hide validation message for the specified anchor if the message for the
51 // anchor is already visible. 52 // anchor is already visible.
52 virtual void HideValidationMessage(const Element& anchor) = 0; 53 virtual void HideValidationMessage(const Element& anchor) = 0;
53 54
54 // Returns true if the validation message for the specified anchor element 55 // Returns true if the validation message for the specified anchor element
55 // is visible. 56 // is visible.
56 virtual bool IsValidationMessageVisible(const Element& anchor) = 0; 57 virtual bool IsValidationMessageVisible(const Element& anchor) = 0;
57 58
59 virtual void WillUnloadDocument(const Document&) = 0;
60 virtual void DocumentDetached(const Document&) = 0;
61
58 virtual void WillBeDestroyed() = 0; 62 virtual void WillBeDestroyed() = 0;
59 63
60 DEFINE_INLINE_VIRTUAL_TRACE() {} 64 DEFINE_INLINE_VIRTUAL_TRACE() {}
61 }; 65 };
62 66
63 } // namespace blink 67 } // namespace blink
64 68
65 #endif 69 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.cpp ('k') | third_party/WebKit/Source/core/page/ValidationMessageClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698