| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 void setRootGraphicsLayer(GraphicsLayer*); | 430 void setRootGraphicsLayer(GraphicsLayer*); |
| 431 PaintLayerCompositor* compositor() const; | 431 PaintLayerCompositor* compositor() const; |
| 432 void scheduleAnimation(); | 432 void scheduleAnimation(); |
| 433 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); | 433 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
| 434 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); | 434 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
| 435 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } | 435 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } |
| 436 | 436 |
| 437 WebViewScheduler* scheduler() const override; | 437 WebViewScheduler* scheduler() const override; |
| 438 void setVisibilityState(WebPageVisibilityState, bool) override; | 438 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 439 | 439 |
| 440 bool hasOpenedPopup() const { return m_pagePopup; } | 440 bool hasOpenedPopup() const { return m_pagePopup.get(); } |
| 441 | 441 |
| 442 // Returns true if the event leads to scrolling. | 442 // Returns true if the event leads to scrolling. |
| 443 static bool mapKeyCodeForScroll( | 443 static bool mapKeyCodeForScroll( |
| 444 int keyCode, | 444 int keyCode, |
| 445 ScrollDirectionPhysical*, | 445 ScrollDirectionPhysical*, |
| 446 ScrollGranularity*); | 446 ScrollGranularity*); |
| 447 | 447 |
| 448 // Called by a full frame plugin inside this view to inform it that its | 448 // Called by a full frame plugin inside this view to inform it that its |
| 449 // zoom level has been updated. The plugin should only call this function | 449 // zoom level has been updated. The plugin should only call this function |
| 450 // if the zoom change was triggered by the browser, it's only needed in case | 450 // if the zoom change was triggered by the browser, it's only needed in case |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 double m_lastFrameTimeMonotonic; | 761 double m_lastFrameTimeMonotonic; |
| 762 }; | 762 }; |
| 763 | 763 |
| 764 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
| 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 767 | 767 |
| 768 } // namespace blink | 768 } // namespace blink |
| 769 | 769 |
| 770 #endif | 770 #endif |
| OLD | NEW |