OLD | NEW |
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 void setPageEncoding(const WebString&) override; | 170 void setPageEncoding(const WebString&) override; |
171 bool tabsToLinks() const override; | 171 bool tabsToLinks() const override; |
172 void setTabsToLinks(bool value) override; | 172 void setTabsToLinks(bool value) override; |
173 bool tabKeyCyclesThroughElements() const override; | 173 bool tabKeyCyclesThroughElements() const override; |
174 void setTabKeyCyclesThroughElements(bool value) override; | 174 void setTabKeyCyclesThroughElements(bool value) override; |
175 bool isActive() const override; | 175 bool isActive() const override; |
176 void setIsActive(bool value) override; | 176 void setIsActive(bool value) override; |
177 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; | 177 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; |
178 void setWindowFeatures(const WebWindowFeatures&) override; | 178 void setWindowFeatures(const WebWindowFeatures&) override; |
179 void setOpenedByDOM() override; | 179 void setOpenedByDOM() override; |
| 180 void resizeWithTopControls( |
| 181 const WebSize&, |
| 182 float topControlsHeight, |
| 183 bool topControlsShrinkLayout) override; |
180 WebFrame* mainFrame() override; | 184 WebFrame* mainFrame() override; |
181 WebFrame* findFrameByName( | 185 WebFrame* findFrameByName( |
182 const WebString& name, WebFrame* relativeToFrame) override; | 186 const WebString& name, WebFrame* relativeToFrame) override; |
183 WebFrame* focusedFrame() override; | 187 WebFrame* focusedFrame() override; |
184 void setFocusedFrame(WebFrame*) override; | 188 void setFocusedFrame(WebFrame*) override; |
185 void focusDocumentView(WebFrame*) override; | 189 void focusDocumentView(WebFrame*) override; |
186 void setInitialFocus(bool reverse) override; | 190 void setInitialFocus(bool reverse) override; |
187 void clearFocusedElement() override; | 191 void clearFocusedElement() override; |
188 bool scrollFocusedNodeIntoRect(const WebRect&) override; | 192 bool scrollFocusedNodeIntoRect(const WebRect&) override; |
189 void smoothScroll(int targetX, int targetY, long durationMs) override; | 193 void smoothScroll(int targetX, int targetY, long durationMs) override; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 498 |
495 WebSettingsImpl* settingsImpl(); | 499 WebSettingsImpl* settingsImpl(); |
496 | 500 |
497 // Returns the bounding box of the block type node touched by the WebPoint. | 501 // Returns the bounding box of the block type node touched by the WebPoint. |
498 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); | 502 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); |
499 | 503 |
500 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 504 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
501 | 505 |
502 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 506 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
503 | 507 |
504 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov
erride; | |
505 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; | 508 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; |
506 | 509 |
507 TopControls& topControls(); | 510 TopControls& topControls(); |
508 // Called anytime top controls layout height or content offset have changed. | 511 // Called anytime top controls layout height or content offset have changed. |
509 void didUpdateTopControls(); | 512 void didUpdateTopControls(); |
510 | 513 |
511 void forceNextWebGLContextCreationToFail() override; | 514 void forceNextWebGLContextCreationToFail() override; |
512 void forceNextDrawingBufferCreationToFail() override; | 515 void forceNextDrawingBufferCreationToFail() override; |
513 | 516 |
514 IntSize mainFrameSize(); | 517 IntSize mainFrameSize(); |
(...skipping 23 matching lines...) Expand all Loading... |
538 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 541 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
539 | 542 |
540 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 543 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
541 | 544 |
542 float maximumLegiblePageScale() const; | 545 float maximumLegiblePageScale() const; |
543 void refreshPageScaleFactorAfterLayout(); | 546 void refreshPageScaleFactorAfterLayout(); |
544 void resumeTreeViewCommitsIfRenderingReady(); | 547 void resumeTreeViewCommitsIfRenderingReady(); |
545 IntSize contentsSize() const; | 548 IntSize contentsSize() const; |
546 | 549 |
547 void performResize(); | 550 void performResize(); |
548 void resizeViewWhileAnchored(FrameView*); | 551 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo
ntrolsShrinkLayout); |
549 | 552 |
550 friend class WebView; // So WebView::Create can call our constructor | 553 friend class WebView; // So WebView::Create can call our constructor |
551 friend class WTF::RefCounted<WebViewImpl>; | 554 friend class WTF::RefCounted<WebViewImpl>; |
552 friend void setCurrentInputEventForTest(const WebInputEvent*); | 555 friend void setCurrentInputEventForTest(const WebInputEvent*); |
553 | 556 |
554 enum DragAction { | 557 enum DragAction { |
555 DragEnter, | 558 DragEnter, |
556 DragOver | 559 DragOver |
557 }; | 560 }; |
558 | 561 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 }; | 774 }; |
772 | 775 |
773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 776 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 | 777 // We have no ways to check if the specified WebView is an instance of |
775 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 778 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 779 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
777 | 780 |
778 } // namespace blink | 781 } // namespace blink |
779 | 782 |
780 #endif | 783 #endif |
OLD | NEW |