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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS
ignals; } | 537 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS
ignals; } |
538 | 538 |
539 private: | 539 private: |
540 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 540 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
541 | 541 |
542 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 542 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
543 | 543 |
544 float maximumLegiblePageScale() const; | 544 float maximumLegiblePageScale() const; |
545 void refreshPageScaleFactorAfterLayout(); | 545 void refreshPageScaleFactorAfterLayout(); |
546 void resetScrollAndScaleState(bool immediately); | 546 void resetScrollAndScaleState(bool immediately); |
547 void resumeTreeViewCommitsIfNeeded(WebLocalFrameImpl*); | 547 void resumeTreeViewCommits(); |
548 IntSize contentsSize() const; | 548 IntSize contentsSize() const; |
549 | 549 |
550 void performResize(); | 550 void performResize(); |
551 void resizeViewWhileAnchored(FrameView*); | 551 void resizeViewWhileAnchored(FrameView*); |
552 | 552 |
553 friend class WebView; // So WebView::Create can call our constructor | 553 friend class WebView; // So WebView::Create can call our constructor |
554 friend class WTF::RefCounted<WebViewImpl>; | 554 friend class WTF::RefCounted<WebViewImpl>; |
555 friend void setCurrentInputEventForTest(const WebInputEvent*); | 555 friend void setCurrentInputEventForTest(const WebInputEvent*); |
556 | 556 |
557 enum DragAction { | 557 enum DragAction { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 }; | 771 }; |
772 | 772 |
773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
774 // We have no ways to check if the specified WebView is an instance of | 774 // We have no ways to check if the specified WebView is an instance of |
775 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 775 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
777 | 777 |
778 } // namespace blink | 778 } // namespace blink |
779 | 779 |
780 #endif | 780 #endif |
OLD | NEW |