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

Side by Side Diff: Source/WebKit/chromium/src/ValidationMessageClientImpl.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 | « no previous file | Source/WebKit/chromium/src/ValidationMessageClientImpl.cpp » ('j') | 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) 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 29 matching lines...) Expand all
40 class WebValidationMessageClient; 40 class WebValidationMessageClient;
41 class WebViewImpl; 41 class WebViewImpl;
42 42
43 class ValidationMessageClientImpl : public WebCore::ValidationMessageClient { 43 class ValidationMessageClientImpl : public WebCore::ValidationMessageClient {
44 public: 44 public:
45 static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&, WebValid ationMessageClient&); 45 static PassOwnPtr<ValidationMessageClientImpl> create(WebViewImpl&, WebValid ationMessageClient&);
46 virtual ~ValidationMessageClientImpl(); 46 virtual ~ValidationMessageClientImpl();
47 47
48 private: 48 private:
49 ValidationMessageClientImpl(WebViewImpl&, WebValidationMessageClient&); 49 ValidationMessageClientImpl(WebViewImpl&, WebValidationMessageClient&);
50 void askClientToShowValidationMessage();
51 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); 50 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*);
52 WebCore::FrameView* currentView(); 51 WebCore::FrameView* currentView();
53 52
54 virtual void showValidationMessage(const WebCore::Element& anchor, const Str ing& message) OVERRIDE; 53 virtual void showValidationMessage(const WebCore::Element& anchor, const Str ing& message) OVERRIDE;
55 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; 54 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE;
56 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER RIDE; 55 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER RIDE;
57 56
58 WebViewImpl& m_webView; 57 WebViewImpl& m_webView;
59 WebValidationMessageClient& m_client; 58 WebValidationMessageClient& m_client;
60 const WebCore::Element* m_currentAnchor; 59 const WebCore::Element* m_currentAnchor;
61 String m_message; 60 String m_message;
62 WebCore::IntRect m_lastAnchorRectInScreen; 61 WebCore::IntRect m_lastAnchorRectInScreen;
63 float m_lastPageScaleFactor; 62 float m_lastPageScaleFactor;
64 double m_finishTime; 63 double m_finishTime;
65 WebCore::Timer<ValidationMessageClientImpl> m_timer; 64 WebCore::Timer<ValidationMessageClientImpl> m_timer;
66 }; 65 };
67 66
68 } 67 }
69 68
70 #endif 69 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/ValidationMessageClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698