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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 500 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
501 | 501 |
502 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } | 502 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } |
503 | 503 |
504 // Returns the currently active WebInputMethodController which is the one | 504 // Returns the currently active WebInputMethodController which is the one |
505 // corresponding to the focused frame. It will return nullptr if there is no | 505 // corresponding to the focused frame. It will return nullptr if there is no |
506 // focused frame, or if the there is one but it belongs to a different local | 506 // focused frame, or if the there is one but it belongs to a different local |
507 // root. | 507 // root. |
508 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; | 508 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
509 | 509 |
| 510 void updateLayerTreeBackgroundColor(); |
| 511 |
510 private: | 512 private: |
511 InspectorOverlay* inspectorOverlay(); | 513 InspectorOverlay* inspectorOverlay(); |
512 | 514 |
513 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 515 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
514 void propagateZoomFactorToLocalFrameRoots(Frame*, float); | 516 void propagateZoomFactorToLocalFrameRoots(Frame*, float); |
515 | 517 |
516 void scrollAndRescaleViewports(float scaleFactor, | 518 void scrollAndRescaleViewports(float scaleFactor, |
517 const IntPoint& mainFrameOrigin, | 519 const IntPoint& mainFrameOrigin, |
518 const FloatPoint& visualViewportOrigin); | 520 const FloatPoint& visualViewportOrigin); |
519 | 521 |
(...skipping 29 matching lines...) Expand all Loading... |
549 HitTestResult hitTestResultForViewportPos(const IntPoint&); | 551 HitTestResult hitTestResultForViewportPos(const IntPoint&); |
550 | 552 |
551 void configureAutoResizeMode(); | 553 void configureAutoResizeMode(); |
552 | 554 |
553 void initializeLayerTreeView(); | 555 void initializeLayerTreeView(); |
554 | 556 |
555 void setIsAcceleratedCompositingActive(bool); | 557 void setIsAcceleratedCompositingActive(bool); |
556 void doComposite(); | 558 void doComposite(); |
557 void reallocateRenderer(); | 559 void reallocateRenderer(); |
558 void updateLayerTreeViewport(); | 560 void updateLayerTreeViewport(); |
559 void updateLayerTreeBackgroundColor(); | |
560 void updateDeviceEmulationTransform(); | 561 void updateDeviceEmulationTransform(); |
561 void updateLayerTreeDeviceScaleFactor(); | 562 void updateLayerTreeDeviceScaleFactor(); |
562 | 563 |
563 // Helper function: Widens the width of |source| by the specified margins | 564 // Helper function: Widens the width of |source| by the specified margins |
564 // while keeping it smaller than page width. | 565 // while keeping it smaller than page width. |
565 WebRect widenRectWithinPageBounds(const WebRect& source, | 566 WebRect widenRectWithinPageBounds(const WebRect& source, |
566 int targetMargin, | 567 int targetMargin, |
567 int minimumMargin); | 568 int minimumMargin); |
568 | 569 |
569 // PageWidgetEventHandler functions | 570 // PageWidgetEventHandler functions |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 743 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
743 }; | 744 }; |
744 | 745 |
745 // We have no ways to check if the specified WebView is an instance of | 746 // We have no ways to check if the specified WebView is an instance of |
746 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 747 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
748 | 749 |
749 } // namespace blink | 750 } // namespace blink |
750 | 751 |
751 #endif | 752 #endif |
OLD | NEW |