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

Side by Side Diff: third_party/WebKit/Source/web/ValidationMessageClientImpl.h

Issue 2771193002: Form validation: Validation bubble should be closed on document unload process. (Closed)
Patch Set: . Created 3 years, 9 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void checkAnchorStatus(TimerBase*); 53 void checkAnchorStatus(TimerBase*);
54 FrameView* currentView(); 54 FrameView* currentView();
55 55
56 void showValidationMessage(const Element& anchor, 56 void showValidationMessage(const Element& anchor,
57 const String& message, 57 const String& message,
58 TextDirection messageDir, 58 TextDirection messageDir,
59 const String& subMessage, 59 const String& subMessage,
60 TextDirection subMessageDir) override; 60 TextDirection subMessageDir) override;
61 void hideValidationMessage(const Element& anchor) override; 61 void hideValidationMessage(const Element& anchor) override;
62 bool isValidationMessageVisible(const Element& anchor) override; 62 bool isValidationMessageVisible(const Element& anchor) override;
63 void willUnloadDocument(const Document&) override;
63 void documentDetached(const Document&) override; 64 void documentDetached(const Document&) override;
64 void willBeDestroyed() override; 65 void willBeDestroyed() override;
65 66
66 WebViewImpl& m_webView; 67 WebViewImpl& m_webView;
67 Member<const Element> m_currentAnchor; 68 Member<const Element> m_currentAnchor;
68 String m_message; 69 String m_message;
69 IntRect m_lastAnchorRectInScreen; 70 IntRect m_lastAnchorRectInScreen;
70 float m_lastPageScaleFactor; 71 float m_lastPageScaleFactor;
71 double m_finishTime; 72 double m_finishTime;
72 std::unique_ptr<TimerBase> m_timer; 73 std::unique_ptr<TimerBase> m_timer;
73 }; 74 };
74 75
75 } // namespace blink 76 } // namespace blink
76 77
77 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698