| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Adds/removes a PageOverlay for given client. | 52 // Adds/removes a PageOverlay for given client. |
| 53 // Returns true if a PageOverlay is added/removed. | 53 // Returns true if a PageOverlay is added/removed. |
| 54 bool add(WebPageOverlay*, int /* zOrder */); | 54 bool add(WebPageOverlay*, int /* zOrder */); |
| 55 bool remove(WebPageOverlay*); | 55 bool remove(WebPageOverlay*); |
| 56 | 56 |
| 57 void update(); | 57 void update(); |
| 58 void paintWebFrame(GraphicsContext&); | 58 void paintWebFrame(GraphicsContext&); |
| 59 | 59 |
| 60 size_t findGraphicsLayer(GraphicsLayer*); | 60 size_t findGraphicsLayer(GraphicsLayer*); |
| 61 | 61 |
| 62 // FIXME: Really, it should be possible for there to be multiple. |
| 63 // But the signature of WebViewImpl::setOverlayLayer already seems to |
| 64 // preclude that. |
| 65 GraphicsLayer* graphicsLayerForTesting() const; |
| 66 |
| 62 private: | 67 private: |
| 63 typedef Vector<OwnPtr<PageOverlay>, 2> PageOverlays; | 68 typedef Vector<OwnPtr<PageOverlay>, 2> PageOverlays; |
| 64 | 69 |
| 65 explicit PageOverlayList(WebViewImpl*); | 70 explicit PageOverlayList(WebViewImpl*); |
| 66 | 71 |
| 67 // Returns the index of the client found. Otherwise, returns WTF::kNotFound. | 72 // Returns the index of the client found. Otherwise, returns WTF::kNotFound. |
| 68 size_t find(WebPageOverlay*); | 73 size_t find(WebPageOverlay*); |
| 69 | 74 |
| 70 WebViewImpl* m_viewImpl; | 75 WebViewImpl* m_viewImpl; |
| 71 PageOverlays m_pageOverlays; | 76 PageOverlays m_pageOverlays; |
| 72 }; | 77 }; |
| 73 | 78 |
| 74 } // namespace blink | 79 } // namespace blink |
| 75 | 80 |
| 76 #endif // PageOverlayList_h | 81 #endif // PageOverlayList_h |
| OLD | NEW |