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

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

Issue 1163433003: Remove WebViewImpl helper methods for setting scroll offset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed outerViewport to layoutViewport Created 5 years, 6 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; 118 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override;
119 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) override; 119 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) override;
120 virtual bool isTrackingRepaints() const override; 120 virtual bool isTrackingRepaints() const override;
121 virtual void themeChanged() override; 121 virtual void themeChanged() override;
122 virtual bool handleInputEvent(const WebInputEvent&) override; 122 virtual bool handleInputEvent(const WebInputEvent&) override;
123 virtual void setCursorVisibilityState(bool isVisible) override; 123 virtual void setCursorVisibilityState(bool isVisible) override;
124 virtual bool hasTouchEventHandlersAt(const WebPoint&) override; 124 virtual bool hasTouchEventHandlersAt(const WebPoint&) override;
125 125
126 virtual void applyViewportDeltas( 126 virtual void applyViewportDeltas(
127 const WebFloatSize& pinchViewportDelta, 127 const WebFloatSize& pinchViewportDelta,
128 const WebFloatSize& mainFrameDelta, 128 const WebFloatSize& layoutViewportDelta,
129 const WebFloatSize& elasticOverscrollDelta, 129 const WebFloatSize& elasticOverscrollDelta,
130 float pageScaleDelta, 130 float pageScaleDelta,
131 float topControlsShownRatioDelta) override; 131 float topControlsShownRatioDelta) override;
132 virtual void recordFrameTimingEvent(enum FrameTimingEventType, int64_t, cons t WebVector<WebFrameTimingEvent>&) override; 132 virtual void recordFrameTimingEvent(enum FrameTimingEventType, int64_t, cons t WebVector<WebFrameTimingEvent>&) override;
133 virtual void mouseCaptureLost() override; 133 virtual void mouseCaptureLost() override;
134 virtual void setFocus(bool enable) override; 134 virtual void setFocus(bool enable) override;
135 virtual bool setComposition( 135 virtual bool setComposition(
136 const WebString& text, 136 const WebString& text,
137 const WebVector<WebCompositionUnderline>& underlines, 137 const WebVector<WebCompositionUnderline>& underlines,
138 int selectionStart, 138 int selectionStart,
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 private: 538 private:
539 void setPageScaleFactorAndLocation(float, const FloatPoint&); 539 void setPageScaleFactorAndLocation(float, const FloatPoint&);
540 540
541 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& pinchViewportOrigin); 541 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& pinchViewportOrigin);
542 542
543 float maximumLegiblePageScale() const; 543 float maximumLegiblePageScale() const;
544 void refreshPageScaleFactorAfterLayout(); 544 void refreshPageScaleFactorAfterLayout();
545 void resumeTreeViewCommits(); 545 void resumeTreeViewCommits();
546 IntSize contentsSize() const; 546 IntSize contentsSize() const;
547 547
548 void updateLayoutViewportScrollPosition(const DoublePoint& scrollPosition, b ool programmaticScroll);
549
550 void performResize(); 548 void performResize();
551 void resizeViewWhileAnchored(FrameView*); 549 void resizeViewWhileAnchored(FrameView*);
552 550
553 friend class WebView; // So WebView::Create can call our constructor 551 friend class WebView; // So WebView::Create can call our constructor
554 friend class WTF::RefCounted<WebViewImpl>; 552 friend class WTF::RefCounted<WebViewImpl>;
555 friend void setCurrentInputEventForTest(const WebInputEvent*); 553 friend void setCurrentInputEventForTest(const WebInputEvent*);
556 554
557 enum DragAction { 555 enum DragAction {
558 DragEnter, 556 DragEnter,
559 DragOver 557 DragOver
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 }; 764 };
767 765
768 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 766 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 767 // We have no ways to check if the specified WebView is an instance of
770 // WebViewImpl because WebViewImpl is the only implementation of WebView. 768 // WebViewImpl because WebViewImpl is the only implementation of WebView.
771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 769 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
772 770
773 } // namespace blink 771 } // namespace blink
774 772
775 #endif 773 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698