OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 m_pageScaleLayer->platformLayer(), | 416 m_pageScaleLayer->platformLayer(), |
417 m_innerViewportScrollLayer->platformLayer(), | 417 m_innerViewportScrollLayer->platformLayer(), |
418 scrollLayer); | 418 scrollLayer); |
419 } | 419 } |
420 | 420 |
421 bool VisualViewport::visualViewportSuppliesScrollbars() const | 421 bool VisualViewport::visualViewportSuppliesScrollbars() const |
422 { | 422 { |
423 return frameHost().settings().viewportMetaEnabled(); | 423 return frameHost().settings().viewportMetaEnabled(); |
424 } | 424 } |
425 | 425 |
| 426 bool VisualViewport::scrollAnimatorEnabled() const |
| 427 { |
| 428 return frameHost().settings().scrollAnimatorEnabled(); |
| 429 } |
| 430 |
426 void VisualViewport::clearLayersForTreeView(WebLayerTreeView* layerTreeView) con
st | 431 void VisualViewport::clearLayersForTreeView(WebLayerTreeView* layerTreeView) con
st |
427 { | 432 { |
428 ASSERT(layerTreeView); | 433 ASSERT(layerTreeView); |
429 | 434 |
430 layerTreeView->clearViewportLayers(); | 435 layerTreeView->clearViewportLayers(); |
431 } | 436 } |
432 | 437 |
433 HostWindow* VisualViewport::hostWindow() const | 438 HostWindow* VisualViewport::hostWindow() const |
434 { | 439 { |
435 return &frameHost().chromeClient(); | 440 return &frameHost().chromeClient(); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 } else if (graphicsLayer == m_rootTransformLayer) { | 741 } else if (graphicsLayer == m_rootTransformLayer) { |
737 name = "Root Transform Layer"; | 742 name = "Root Transform Layer"; |
738 } else { | 743 } else { |
739 ASSERT_NOT_REACHED(); | 744 ASSERT_NOT_REACHED(); |
740 } | 745 } |
741 | 746 |
742 return name; | 747 return name; |
743 } | 748 } |
744 | 749 |
745 } // namespace blink | 750 } // namespace blink |
OLD | NEW |