OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 void removeLinkHighlight(LinkHighlight*); | 227 void removeLinkHighlight(LinkHighlight*); |
228 // Exposed for tests | 228 // Exposed for tests |
229 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 229 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
230 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } | 230 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i]; } |
231 | 231 |
232 void setScrollableArea(ScrollableArea*, bool isViewport); | 232 void setScrollableArea(ScrollableArea*, bool isViewport); |
233 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 233 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
234 | 234 |
235 WebContentLayer* contentLayer() const { return m_layer.get(); } | 235 WebContentLayer* contentLayer() const { return m_layer.get(); } |
236 | 236 |
| 237 // Sets main thread scrolling reasons on the underlying layer. If given 0, |
| 238 // clears the main thread scrolling reasons. |
| 239 void setMainThreadScrollingReasons(uint32_t); |
| 240 |
237 static void registerContentsLayer(WebLayer*); | 241 static void registerContentsLayer(WebLayer*); |
238 static void unregisterContentsLayer(WebLayer*); | 242 static void unregisterContentsLayer(WebLayer*); |
239 | 243 |
240 IntRect interestRect(); | 244 IntRect interestRect(); |
241 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap
hicsContext::NothingDisabled); | 245 void paint(const IntRect* interestRect, GraphicsContext::DisabledMode = Grap
hicsContext::NothingDisabled); |
242 | 246 |
243 // WebCompositorAnimationDelegate implementation. | 247 // WebCompositorAnimationDelegate implementation. |
244 void notifyAnimationStarted(double monotonicTime, int group) override; | 248 void notifyAnimationStarted(double monotonicTime, int group) override; |
245 void notifyAnimationFinished(double monotonicTime, int group) override; | 249 void notifyAnimationFinished(double monotonicTime, int group) override; |
246 void notifyAnimationAborted(double monotonicTime, int group) override; | 250 void notifyAnimationAborted(double monotonicTime, int group) override; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 }; | 384 }; |
381 | 385 |
382 } // namespace blink | 386 } // namespace blink |
383 | 387 |
384 #ifndef NDEBUG | 388 #ifndef NDEBUG |
385 // Outside the blink namespace for ease of invocation from gdb. | 389 // Outside the blink namespace for ease of invocation from gdb. |
386 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 390 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
387 #endif | 391 #endif |
388 | 392 |
389 #endif // GraphicsLayer_h | 393 #endif // GraphicsLayer_h |
OLD | NEW |