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

Unified Diff: Source/web/ViewportAnchor.h

Issue 462613002: Cleanup namespace usage in Source/web/[A-V]*.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/TextFinder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ViewportAnchor.h
diff --git a/Source/web/ViewportAnchor.h b/Source/web/ViewportAnchor.h
index 45c3e1ecab6c4c293a4623772daeb1b748928e2b..8bd0a7b92b1ef0c77917e4b37fc754c2e69e768d 100644
--- a/Source/web/ViewportAnchor.h
+++ b/Source/web/ViewportAnchor.h
@@ -39,12 +39,10 @@
#include "wtf/RefCounted.h"
namespace blink {
+
class EventHandler;
class IntSize;
class Node;
-}
-
-namespace blink {
// ViewportAnchor provides a way to anchor a viewport origin to a DOM node.
// In particular, the user supplies the current viewport (in CSS coordinates)
@@ -56,22 +54,22 @@ namespace blink {
class ViewportAnchor {
STACK_ALLOCATED();
public:
- explicit ViewportAnchor(blink::EventHandler* eventHandler);
+ explicit ViewportAnchor(EventHandler*);
- void setAnchor(const blink::IntRect& viewRect, const blink::FloatSize& anchorInViewCoords);
+ void setAnchor(const IntRect& viewRect, const FloatSize& anchorInViewCoords);
- blink::IntPoint computeOrigin(const blink::IntSize& currentViewSize) const;
+ IntPoint computeOrigin(const IntSize& currentViewSize) const;
private:
- RawPtrWillBeMember<blink::EventHandler> m_eventHandler;
+ RawPtrWillBeMember<EventHandler> m_eventHandler;
- blink::IntRect m_viewRect;
+ IntRect m_viewRect;
- RefPtrWillBeMember<blink::Node> m_anchorNode;
- blink::LayoutRect m_anchorNodeBounds;
+ RefPtrWillBeMember<Node> m_anchorNode;
+ LayoutRect m_anchorNodeBounds;
- blink::FloatSize m_anchorInViewCoords;
- blink::FloatSize m_anchorInNodeCoords;
+ FloatSize m_anchorInViewCoords;
+ FloatSize m_anchorInNodeCoords;
};
} // namespace blink
« no previous file with comments | « Source/web/TextFinder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698