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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 521 |
522 IntRect visibleRectInDocument() const; | 522 IntRect visibleRectInDocument() const; |
523 | 523 |
524 float legibleScale() const; | 524 float legibleScale() const; |
525 void refreshPageScaleFactorAfterLayout(); | 525 void refreshPageScaleFactorAfterLayout(); |
526 void resumeTreeViewCommits(); | 526 void resumeTreeViewCommits(); |
527 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); | 527 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); |
528 float clampPageScaleFactorToLimits(float) const; | 528 float clampPageScaleFactorToLimits(float) const; |
529 IntSize contentsSize() const; | 529 IntSize contentsSize() const; |
530 | 530 |
531 void resetSavedScrollAndScaleState(); | |
532 | |
533 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); | 531 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); |
534 | 532 |
535 void performResize(); | 533 void performResize(); |
536 | 534 |
537 friend class WebView; // So WebView::Create can call our constructor | 535 friend class WebView; // So WebView::Create can call our constructor |
538 friend class WTF::RefCounted<WebViewImpl>; | 536 friend class WTF::RefCounted<WebViewImpl>; |
539 friend void setCurrentInputEventForTest(const WebInputEvent*); | 537 friend void setCurrentInputEventForTest(const WebInputEvent*); |
540 | 538 |
541 enum DragAction { | 539 enum DragAction { |
542 DragEnter, | 540 DragEnter, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 float m_topControlsLayoutHeight; | 752 float m_topControlsLayoutHeight; |
755 }; | 753 }; |
756 | 754 |
757 // We have no ways to check if the specified WebView is an instance of | 755 // We have no ways to check if the specified WebView is an instance of |
758 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 756 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
759 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
760 | 758 |
761 } // namespace blink | 759 } // namespace blink |
762 | 760 |
763 #endif | 761 #endif |
OLD | NEW |