OLD | NEW |
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 15 matching lines...) Expand all Loading... |
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 #include "config.h" | 29 #include "config.h" |
30 #include "PageOverlayList.h" | 30 #include "PageOverlayList.h" |
31 | 31 |
32 #include "PageOverlay.h" | 32 #include "PageOverlay.h" |
33 #include "WebPageOverlay.h" | 33 #include "WebPageOverlay.h" |
34 #include "WebViewImpl.h" | 34 #include "WebViewImpl.h" |
35 | 35 |
36 namespace WebKit { | 36 namespace blink { |
37 | 37 |
38 PassOwnPtr<PageOverlayList> PageOverlayList::create(WebViewImpl* viewImpl) | 38 PassOwnPtr<PageOverlayList> PageOverlayList::create(WebViewImpl* viewImpl) |
39 { | 39 { |
40 return adoptPtr(new PageOverlayList(viewImpl)); | 40 return adoptPtr(new PageOverlayList(viewImpl)); |
41 } | 41 } |
42 | 42 |
43 PageOverlayList::PageOverlayList(WebViewImpl* viewImpl) | 43 PageOverlayList::PageOverlayList(WebViewImpl* viewImpl) |
44 : m_viewImpl(viewImpl) | 44 : m_viewImpl(viewImpl) |
45 { | 45 { |
46 } | 46 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 size_t PageOverlayList::findGraphicsLayer(WebCore::GraphicsLayer* layer) | 130 size_t PageOverlayList::findGraphicsLayer(WebCore::GraphicsLayer* layer) |
131 { | 131 { |
132 for (size_t i = 0; i < m_pageOverlays.size(); ++i) { | 132 for (size_t i = 0; i < m_pageOverlays.size(); ++i) { |
133 if (m_pageOverlays[i]->graphicsLayer() == layer) | 133 if (m_pageOverlays[i]->graphicsLayer() == layer) |
134 return i; | 134 return i; |
135 } | 135 } |
136 return WTF::kNotFound; | 136 return WTF::kNotFound; |
137 } | 137 } |
138 | 138 |
139 } // namespace WebKit | 139 } // namespace blink |
OLD | NEW |