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

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

Issue 1003323004: Turn ViewportAnchors into stack allocated objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/web/ViewportAnchor.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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 float maximumLegiblePageScale() const; 539 float maximumLegiblePageScale() const;
540 void refreshPageScaleFactorAfterLayout(); 540 void refreshPageScaleFactorAfterLayout();
541 void resumeTreeViewCommits(); 541 void resumeTreeViewCommits();
542 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); 542 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints);
543 IntSize contentsSize() const; 543 IntSize contentsSize() const;
544 544
545 void updateMainFrameScrollPosition(const DoublePoint& scrollPosition, bool p rogrammaticScroll); 545 void updateMainFrameScrollPosition(const DoublePoint& scrollPosition, bool p rogrammaticScroll);
546 546
547 void performResize(); 547 void performResize();
548 void resizeViewWhileAnchored(FrameView*);
548 549
549 friend class WebView; // So WebView::Create can call our constructor 550 friend class WebView; // So WebView::Create can call our constructor
550 friend class WTF::RefCounted<WebViewImpl>; 551 friend class WTF::RefCounted<WebViewImpl>;
551 friend void setCurrentInputEventForTest(const WebInputEvent*); 552 friend void setCurrentInputEventForTest(const WebInputEvent*);
552 553
553 enum DragAction { 554 enum DragAction {
554 DragEnter, 555 DragEnter,
555 DragOver 556 DragOver
556 }; 557 };
557 558
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 }; 770 };
770 771
771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 772 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
772 // We have no ways to check if the specified WebView is an instance of 773 // We have no ways to check if the specified WebView is an instance of
773 // WebViewImpl because WebViewImpl is the only implementation of WebView. 774 // WebViewImpl because WebViewImpl is the only implementation of WebView.
774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
775 776
776 } // namespace blink 777 } // namespace blink
777 778
778 #endif 779 #endif
OLDNEW
« no previous file with comments | « Source/web/ViewportAnchor.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698