Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) { | 1603 unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) { |
| 1604 DCHECK(document); | 1604 DCHECK(document); |
| 1605 return EventHandlerCount( | 1605 return EventHandlerCount( |
| 1606 *document, EventHandlerRegistry::kTouchEndOrCancelEventBlocking) + | 1606 *document, EventHandlerRegistry::kTouchEndOrCancelEventBlocking) + |
| 1607 EventHandlerCount(*document, | 1607 EventHandlerCount(*document, |
| 1608 EventHandlerRegistry::kTouchEndOrCancelEventPassive); | 1608 EventHandlerRegistry::kTouchEndOrCancelEventPassive); |
| 1609 } | 1609 } |
| 1610 | 1610 |
| 1611 unsigned Internals::pointerEventHandlerCount(Document* document) { | |
|
dtapuska
2017/06/01 16:03:01
This should be able to be const.
eirage
2017/06/01 19:59:24
Done.
| |
| 1612 DCHECK(document); | |
| 1613 return EventHandlerCount(*document, EventHandlerRegistry::kPointerEvent); | |
| 1614 } | |
| 1615 | |
| 1611 static PaintLayer* FindLayerForGraphicsLayer(PaintLayer* search_root, | 1616 static PaintLayer* FindLayerForGraphicsLayer(PaintLayer* search_root, |
| 1612 GraphicsLayer* graphics_layer, | 1617 GraphicsLayer* graphics_layer, |
| 1613 IntSize* layer_offset, | 1618 IntSize* layer_offset, |
| 1614 String* layer_type) { | 1619 String* layer_type) { |
| 1615 *layer_offset = IntSize(); | 1620 *layer_offset = IntSize(); |
| 1616 if (search_root->HasCompositedLayerMapping() && | 1621 if (search_root->HasCompositedLayerMapping() && |
| 1617 graphics_layer == | 1622 graphics_layer == |
| 1618 search_root->GetCompositedLayerMapping()->MainGraphicsLayer()) { | 1623 search_root->GetCompositedLayerMapping()->MainGraphicsLayer()) { |
| 1619 // If the |graphicsLayer| sets the scrollingContent layer as its | 1624 // If the |graphicsLayer| sets the scrollingContent layer as its |
| 1620 // scroll parent, consider it belongs to the scrolling layer and | 1625 // scroll parent, consider it belongs to the scrolling layer and |
| (...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3293 | 3298 |
| 3294 void Internals::crash() { | 3299 void Internals::crash() { |
| 3295 CHECK(false) << "Intentional crash"; | 3300 CHECK(false) << "Intentional crash"; |
| 3296 } | 3301 } |
| 3297 | 3302 |
| 3298 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3303 void Internals::setIsLowEndDevice(bool is_low_end_device) { |
| 3299 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3304 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); |
| 3300 } | 3305 } |
| 3301 | 3306 |
| 3302 } // namespace blink | 3307 } // namespace blink |
| OLD | NEW |