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

Side by Side Diff: Source/web/PageOverlay.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: Rebase 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef PageOverlay_h 29 #ifndef PageOverlay_h
30 #define PageOverlay_h 30 #define PageOverlay_h
31 31
32 #include "wtf/OwnPtr.h" 32 #include "wtf/OwnPtr.h"
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 34
35 namespace blink { 35 namespace blink {
tkent 2014/08/11 13:23:17 Remove this.
deepak.sa 2014/08/11 13:39:08 Done.
36
37 }
38
39 namespace blink {
40
36 class GraphicsContext; 41 class GraphicsContext;
37 class GraphicsLayer; 42 class GraphicsLayer;
38 class GraphicsLayerClient; 43 class GraphicsLayerClient;
39 }
40
41 namespace blink {
42 class OverlayGraphicsLayerClientImpl; 44 class OverlayGraphicsLayerClientImpl;
43 class WebPageOverlay; 45 class WebPageOverlay;
44 class WebViewImpl; 46 class WebViewImpl;
45 struct WebRect; 47 struct WebRect;
46 48
47 class PageOverlay { 49 class PageOverlay {
48 public: 50 public:
49 static PassOwnPtr<PageOverlay> create(WebViewImpl*, WebPageOverlay*); 51 static PassOwnPtr<PageOverlay> create(WebViewImpl*, WebPageOverlay*);
50 52
51 ~PageOverlay() { } 53 ~PageOverlay() { }
52 54
53 WebPageOverlay* overlay() const { return m_overlay; } 55 WebPageOverlay* overlay() const { return m_overlay; }
54 void setOverlay(WebPageOverlay* overlay) { m_overlay = overlay; } 56 void setOverlay(WebPageOverlay* overlay) { m_overlay = overlay; }
55 57
56 int zOrder() const { return m_zOrder; } 58 int zOrder() const { return m_zOrder; }
57 void setZOrder(int zOrder) { m_zOrder = zOrder; } 59 void setZOrder(int zOrder) { m_zOrder = zOrder; }
58 60
59 void clear(); 61 void clear();
60 void update(); 62 void update();
61 void paintWebFrame(blink::GraphicsContext&); 63 void paintWebFrame(GraphicsContext&);
62 64
63 blink::GraphicsLayer* graphicsLayer() const { return m_layer.get(); } 65 GraphicsLayer* graphicsLayer() const { return m_layer.get(); }
64 66
65 private: 67 private:
66 PageOverlay(WebViewImpl*, WebPageOverlay*); 68 PageOverlay(WebViewImpl*, WebPageOverlay*);
67 void invalidateWebFrame(); 69 void invalidateWebFrame();
68 70
69 WebViewImpl* m_viewImpl; 71 WebViewImpl* m_viewImpl;
70 WebPageOverlay* m_overlay; 72 WebPageOverlay* m_overlay;
71 OwnPtr<blink::GraphicsLayerClient> m_layerClient; 73 OwnPtr<GraphicsLayerClient> m_layerClient;
72 OwnPtr<blink::GraphicsLayer> m_layer; 74 OwnPtr<GraphicsLayer> m_layer;
73 int m_zOrder; 75 int m_zOrder;
74 }; 76 };
75 77
76 } // namespace blink 78 } // namespace blink
77 79
78 #endif // PageOverlay_h 80 #endif // PageOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698