Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1301)

Side by Side Diff: Source/web/WebViewImpl.h

Issue 1300043003: Centralize deferred commit conditions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS ignals; } 533 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS ignals; }
534 534
535 private: 535 private:
536 void setPageScaleFactorAndLocation(float, const FloatPoint&); 536 void setPageScaleFactorAndLocation(float, const FloatPoint&);
537 537
538 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 538 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
539 539
540 float maximumLegiblePageScale() const; 540 float maximumLegiblePageScale() const;
541 void refreshPageScaleFactorAfterLayout(); 541 void refreshPageScaleFactorAfterLayout();
542 void resetScrollAndScaleState(bool immediately); 542 void resetScrollAndScaleState(bool immediately);
543 void resumeTreeViewCommits(); 543 void resumeTreeViewCommitsIfNeeded(WebLocalFrameImpl*);
544 IntSize contentsSize() const; 544 IntSize contentsSize() const;
545 545
546 void performResize(); 546 void performResize();
547 void resizeViewWhileAnchored(FrameView*); 547 void resizeViewWhileAnchored(FrameView*);
548 548
549 friend class WebView; // So WebView::Create can call our constructor 549 friend class WebView; // So WebView::Create can call our constructor
550 friend class WTF::RefCounted<WebViewImpl>; 550 friend class WTF::RefCounted<WebViewImpl>;
551 friend void setCurrentInputEventForTest(const WebInputEvent*); 551 friend void setCurrentInputEventForTest(const WebInputEvent*);
552 552
553 enum DragAction { 553 enum DragAction {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 }; 766 };
767 767
768 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 768 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
769 // We have no ways to check if the specified WebView is an instance of 769 // We have no ways to check if the specified WebView is an instance of
770 // WebViewImpl because WebViewImpl is the only implementation of WebView. 770 // WebViewImpl because WebViewImpl is the only implementation of WebView.
771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
772 772
773 } // namespace blink 773 } // namespace blink
774 774
775 #endif 775 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698