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

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

Issue 474183002: Cleanup namespace usage in Source/web/*.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | Source/web/PageScaleConstraintsSet.h » ('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) 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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef PageOverlayList_h 29 #ifndef PageOverlayList_h
30 #define PageOverlayList_h 30 #define PageOverlayList_h
31 31
32 #include "wtf/OwnPtr.h" 32 #include "wtf/OwnPtr.h"
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 35
36 namespace blink { 36 namespace blink {
37
37 class GraphicsContext; 38 class GraphicsContext;
38 class GraphicsLayer; 39 class GraphicsLayer;
39 }
40
41 namespace blink {
42 class PageOverlay; 40 class PageOverlay;
43 class WebPageOverlay; 41 class WebPageOverlay;
44 class WebViewImpl; 42 class WebViewImpl;
45 43
46 class PageOverlayList { 44 class PageOverlayList {
47 public: 45 public:
48 static PassOwnPtr<PageOverlayList> create(WebViewImpl*); 46 static PassOwnPtr<PageOverlayList> create(WebViewImpl*);
49 47
50 ~PageOverlayList(); 48 ~PageOverlayList();
51 49
52 bool empty() const { return !m_pageOverlays.size(); } 50 bool empty() const { return !m_pageOverlays.size(); }
53 51
54 // Adds/removes a PageOverlay for given client. 52 // Adds/removes a PageOverlay for given client.
55 // Returns true if a PageOverlay is added/removed. 53 // Returns true if a PageOverlay is added/removed.
56 bool add(WebPageOverlay*, int /* zOrder */); 54 bool add(WebPageOverlay*, int /* zOrder */);
57 bool remove(WebPageOverlay*); 55 bool remove(WebPageOverlay*);
58 56
59 void update(); 57 void update();
60 void paintWebFrame(blink::GraphicsContext&); 58 void paintWebFrame(GraphicsContext&);
61 59
62 size_t findGraphicsLayer(blink::GraphicsLayer*); 60 size_t findGraphicsLayer(GraphicsLayer*);
63 61
64 private: 62 private:
65 typedef Vector<OwnPtr<PageOverlay>, 2> PageOverlays; 63 typedef Vector<OwnPtr<PageOverlay>, 2> PageOverlays;
66 64
67 explicit PageOverlayList(WebViewImpl*); 65 explicit PageOverlayList(WebViewImpl*);
68 66
69 // Returns the index of the client found. Otherwise, returns WTF::kNotFound. 67 // Returns the index of the client found. Otherwise, returns WTF::kNotFound.
70 size_t find(WebPageOverlay*); 68 size_t find(WebPageOverlay*);
71 69
72 WebViewImpl* m_viewImpl; 70 WebViewImpl* m_viewImpl;
73 PageOverlays m_pageOverlays; 71 PageOverlays m_pageOverlays;
74 }; 72 };
75 73
76 } // namespace blink 74 } // namespace blink
77 75
78 #endif // PageOverlayList_h 76 #endif // PageOverlayList_h
OLDNEW
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | Source/web/PageScaleConstraintsSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698