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

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

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/UserMediaClientImpl.cpp ('k') | Source/web/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 14 matching lines...) Expand all
25 25
26 #ifndef ValidationMessageClientImpl_h 26 #ifndef ValidationMessageClientImpl_h
27 #define ValidationMessageClientImpl_h 27 #define ValidationMessageClientImpl_h
28 28
29 #include "core/page/ValidationMessageClient.h" 29 #include "core/page/ValidationMessageClient.h"
30 #include "platform/Timer.h" 30 #include "platform/Timer.h"
31 #include "platform/geometry/IntRect.h" 31 #include "platform/geometry/IntRect.h"
32 #include "platform/heap/Handle.h" 32 #include "platform/heap/Handle.h"
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 34
35 namespace WebCore { 35 namespace blink {
36 class FrameView; 36 class FrameView;
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class WebViewImpl; 41 class WebViewImpl;
42 42
43 class ValidationMessageClientImpl FINAL : public NoBaseWillBeGarbageCollectedFin alized<ValidationMessageClientImpl>, public WebCore::ValidationMessageClient { 43 class ValidationMessageClientImpl FINAL : public NoBaseWillBeGarbageCollectedFin alized<ValidationMessageClientImpl>, public blink::ValidationMessageClient {
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ValidationMessageClientImpl); 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ValidationMessageClientImpl);
45 public: 45 public:
46 static PassOwnPtrWillBeRawPtr<ValidationMessageClientImpl> create(WebViewImp l&); 46 static PassOwnPtrWillBeRawPtr<ValidationMessageClientImpl> create(WebViewImp l&);
47 virtual ~ValidationMessageClientImpl(); 47 virtual ~ValidationMessageClientImpl();
48 48
49 virtual void trace(WebCore::Visitor*) OVERRIDE; 49 virtual void trace(blink::Visitor*) OVERRIDE;
50 50
51 private: 51 private:
52 ValidationMessageClientImpl(WebViewImpl&); 52 ValidationMessageClientImpl(WebViewImpl&);
53 void checkAnchorStatus(WebCore::Timer<ValidationMessageClientImpl>*); 53 void checkAnchorStatus(blink::Timer<ValidationMessageClientImpl>*);
54 WebCore::FrameView* currentView(); 54 blink::FrameView* currentView();
55 55
56 virtual void showValidationMessage(const WebCore::Element& anchor, const Str ing& message) OVERRIDE; 56 virtual void showValidationMessage(const blink::Element& anchor, const Strin g& message) OVERRIDE;
57 virtual void hideValidationMessage(const WebCore::Element& anchor) OVERRIDE; 57 virtual void hideValidationMessage(const blink::Element& anchor) OVERRIDE;
58 virtual bool isValidationMessageVisible(const WebCore::Element& anchor) OVER RIDE; 58 virtual bool isValidationMessageVisible(const blink::Element& anchor) OVERRI DE;
59 virtual void documentDetached(const WebCore::Document&) OVERRIDE; 59 virtual void documentDetached(const blink::Document&) OVERRIDE;
60 virtual void willBeDestroyed() OVERRIDE; 60 virtual void willBeDestroyed() OVERRIDE;
61 61
62 WebViewImpl& m_webView; 62 WebViewImpl& m_webView;
63 RawPtrWillBeMember<const WebCore::Element> m_currentAnchor; 63 RawPtrWillBeMember<const blink::Element> m_currentAnchor;
64 String m_message; 64 String m_message;
65 WebCore::IntRect m_lastAnchorRectInScreen; 65 blink::IntRect m_lastAnchorRectInScreen;
66 float m_lastPageScaleFactor; 66 float m_lastPageScaleFactor;
67 double m_finishTime; 67 double m_finishTime;
68 WebCore::Timer<ValidationMessageClientImpl> m_timer; 68 blink::Timer<ValidationMessageClientImpl> m_timer;
69 }; 69 };
70 70
71 } 71 }
72 72
73 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/web/UserMediaClientImpl.cpp ('k') | Source/web/ValidationMessageClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698