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

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

Issue 1324263002: Merge 201232 "Revert of Centralize deferred commit conditions. (..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2490/
Patch Set: Created 5 years, 3 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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