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

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

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Build fix after rebase Created 4 years, 7 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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void setPageEncoding(const WebString&) override; 168 void setPageEncoding(const WebString&) override;
169 bool tabsToLinks() const override; 169 bool tabsToLinks() const override;
170 void setTabsToLinks(bool value) override; 170 void setTabsToLinks(bool value) override;
171 bool tabKeyCyclesThroughElements() const override; 171 bool tabKeyCyclesThroughElements() const override;
172 void setTabKeyCyclesThroughElements(bool value) override; 172 void setTabKeyCyclesThroughElements(bool value) override;
173 bool isActive() const override; 173 bool isActive() const override;
174 void setIsActive(bool value) override; 174 void setIsActive(bool value) override;
175 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; 175 void setDomainRelaxationForbidden(bool, const WebString& scheme) override;
176 void setWindowFeatures(const WebWindowFeatures&) override; 176 void setWindowFeatures(const WebWindowFeatures&) override;
177 void setOpenedByDOM() override; 177 void setOpenedByDOM() override;
178 void resizeWithTopControls(
179 const WebSize&,
180 float topControlsHeight,
181 bool topControlsShrinkLayout) override;
178 WebFrame* mainFrame() override; 182 WebFrame* mainFrame() override;
179 WebFrame* findFrameByName( 183 WebFrame* findFrameByName(
180 const WebString& name, WebFrame* relativeToFrame) override; 184 const WebString& name, WebFrame* relativeToFrame) override;
181 WebFrame* focusedFrame() override; 185 WebFrame* focusedFrame() override;
182 void setFocusedFrame(WebFrame*) override; 186 void setFocusedFrame(WebFrame*) override;
183 void focusDocumentView(WebFrame*) override; 187 void focusDocumentView(WebFrame*) override;
184 void setInitialFocus(bool reverse) override; 188 void setInitialFocus(bool reverse) override;
185 void clearFocusedElement() override; 189 void clearFocusedElement() override;
186 bool scrollFocusedNodeIntoRect(const WebRect&) override; 190 bool scrollFocusedNodeIntoRect(const WebRect&) override;
187 void smoothScroll(int targetX, int targetY, long durationMs) override; 191 void smoothScroll(int targetX, int targetY, long durationMs) override;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 486
483 WebSettingsImpl* settingsImpl(); 487 WebSettingsImpl* settingsImpl();
484 488
485 // Returns the bounding box of the block type node touched by the WebPoint. 489 // Returns the bounding box of the block type node touched by the WebPoint.
486 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); 490 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping);
487 491
488 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 492 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
489 493
490 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; } 494 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; }
491 495
492 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride;
493 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override; 496 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override;
494 497
495 TopControls& topControls(); 498 TopControls& topControls();
496 // Called anytime top controls layout height or content offset have changed. 499 // Called anytime top controls layout height or content offset have changed.
497 void didUpdateTopControls(); 500 void didUpdateTopControls();
498 501
499 void forceNextWebGLContextCreationToFail() override; 502 void forceNextWebGLContextCreationToFail() override;
500 void forceNextDrawingBufferCreationToFail() override; 503 void forceNextDrawingBufferCreationToFail() override;
501 504
502 IntSize mainFrameSize(); 505 IntSize mainFrameSize();
(...skipping 24 matching lines...) Expand all
527 530
528 void setPageScaleFactorAndLocation(float, const FloatPoint&); 531 void setPageScaleFactorAndLocation(float, const FloatPoint&);
529 532
530 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 533 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
531 534
532 float maximumLegiblePageScale() const; 535 float maximumLegiblePageScale() const;
533 void refreshPageScaleFactorAfterLayout(); 536 void refreshPageScaleFactorAfterLayout();
534 IntSize contentsSize() const; 537 IntSize contentsSize() const;
535 538
536 void performResize(); 539 void performResize();
537 void resizeViewWhileAnchored(FrameView*); 540 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout);
538 541
539 friend class WebView; // So WebView::Create can call our constructor 542 friend class WebView; // So WebView::Create can call our constructor
540 friend class WTF::RefCounted<WebViewImpl>; 543 friend class WTF::RefCounted<WebViewImpl>;
541 friend void setCurrentInputEventForTest(const WebInputEvent*); 544 friend void setCurrentInputEventForTest(const WebInputEvent*);
542 545
543 enum DragAction { 546 enum DragAction {
544 DragEnter, 547 DragEnter,
545 DragOver 548 DragOver
546 }; 549 };
547 550
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 }; 755 };
753 756
754 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
755 // We have no ways to check if the specified WebView is an instance of 758 // We have no ways to check if the specified WebView is an instance of
756 // WebViewImpl because WebViewImpl is the only implementation of WebView. 759 // WebViewImpl because WebViewImpl is the only implementation of WebView.
757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
758 761
759 } // namespace blink 762 } // namespace blink
760 763
761 #endif 764 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698