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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 WebAXObject accessibilityObject() override; | 256 WebAXObject accessibilityObject() override; |
257 void setSelectionColors(unsigned activeBackgroundColor, | 257 void setSelectionColors(unsigned activeBackgroundColor, |
258 unsigned activeForegroundColor, | 258 unsigned activeForegroundColor, |
259 unsigned inactiveBackgroundColor, | 259 unsigned inactiveBackgroundColor, |
260 unsigned inactiveForegroundColor) override; | 260 unsigned inactiveForegroundColor) override; |
261 void performCustomContextMenuAction(unsigned action) override; | 261 void performCustomContextMenuAction(unsigned action) override; |
262 void showContextMenu() override; | 262 void showContextMenu() override; |
263 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid
e; | 263 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid
e; |
264 void hidePopups() override; | 264 void hidePopups() override; |
265 void setPageOverlayColor(WebColor) override; | 265 void setPageOverlayColor(WebColor) override; |
| 266 WebPageImportanceSignals* pageImportanceSignals() override; |
266 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; | 267 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; |
267 bool endActiveFlingAnimation() override; | 268 bool endActiveFlingAnimation() override; |
268 void setShowPaintRects(bool) override; | 269 void setShowPaintRects(bool) override; |
269 void setShowDebugBorders(bool); | 270 void setShowDebugBorders(bool); |
270 void setShowFPSCounter(bool) override; | 271 void setShowFPSCounter(bool) override; |
271 void setShowScrollBottleneckRects(bool) override; | 272 void setShowScrollBottleneckRects(bool) override; |
272 void acceptLanguagesChanged() override; | 273 void acceptLanguagesChanged() override; |
273 | 274 |
274 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>); | 275 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>); |
275 WebCompositedDisplayList* compositedDisplayList() override; | 276 WebCompositedDisplayList* compositedDisplayList() override; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 void forceNextWebGLContextCreationToFail() override; | 522 void forceNextWebGLContextCreationToFail() override; |
522 void forceNextDrawingBufferCreationToFail() override; | 523 void forceNextDrawingBufferCreationToFail() override; |
523 | 524 |
524 IntSize mainFrameSize(); | 525 IntSize mainFrameSize(); |
525 WebDisplayMode displayMode() const { return m_displayMode; } | 526 WebDisplayMode displayMode() const { return m_displayMode; } |
526 | 527 |
527 PageScaleConstraintsSet& pageScaleConstraintsSet() const; | 528 PageScaleConstraintsSet& pageScaleConstraintsSet() const; |
528 | 529 |
529 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 530 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
530 | 531 |
531 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS
ignals; } | |
532 | |
533 private: | 532 private: |
534 InspectorOverlayImpl* inspectorOverlay(); | 533 InspectorOverlayImpl* inspectorOverlay(); |
535 | 534 |
536 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 535 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
537 | 536 |
538 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 537 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
539 | 538 |
540 float maximumLegiblePageScale() const; | 539 float maximumLegiblePageScale() const; |
541 void refreshPageScaleFactorAfterLayout(); | 540 void refreshPageScaleFactorAfterLayout(); |
542 void resetScrollAndScaleState(bool immediately); | 541 void resetScrollAndScaleState(bool immediately); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 }; | 767 }; |
769 | 768 |
770 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 769 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
771 // We have no ways to check if the specified WebView is an instance of | 770 // We have no ways to check if the specified WebView is an instance of |
772 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 771 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
773 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
774 | 773 |
775 } // namespace blink | 774 } // namespace blink |
776 | 775 |
777 #endif | 776 #endif |
OLD | NEW |