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

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

Issue 2784783002: DNS: Testing for [blink] Support (semi-)transparent background colors.
Patch Set: test with !hasAlpha instead of alpha > 0 Created 3 years, 8 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 float clampPageScaleFactorToLimits(float) const; 283 float clampPageScaleFactorToLimits(float) const;
284 void resetScaleStateImmediately(); 284 void resetScaleStateImmediately();
285 285
286 HitTestResult coreHitTestResultAt(const WebPoint&); 286 HitTestResult coreHitTestResultAt(const WebPoint&);
287 void invalidateRect(const IntRect&); 287 void invalidateRect(const IntRect&);
288 288
289 void setBaseBackgroundColor(WebColor); 289 void setBaseBackgroundColor(WebColor);
290 void setBaseBackgroundColorOverride(WebColor); 290 void setBaseBackgroundColorOverride(WebColor);
291 void clearBaseBackgroundColorOverride(); 291 void clearBaseBackgroundColorOverride();
292 void setBackgroundColorOverride(WebColor); 292 void setBackgroundColorOverride(WebColor);
293 void clearBackgroundColorOverride();
293 void setZoomFactorOverride(float); 294 void setZoomFactorOverride(float);
294 void setCompositorDeviceScaleFactorOverride(float); 295 void setCompositorDeviceScaleFactorOverride(float);
295 void setDeviceEmulationTransform(const TransformationMatrix&); 296 void setDeviceEmulationTransform(const TransformationMatrix&);
296 TransformationMatrix getDeviceEmulationTransformForTesting() const; 297 TransformationMatrix getDeviceEmulationTransformForTesting() const;
297 298
298 Color baseBackgroundColor() const; 299 Color baseBackgroundColor() const;
300 bool backgroundColorOverrideEnabled() const {
301 return m_backgroundColorOverrideEnabled;
302 }
299 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 303 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
300 304
301 Frame* focusedCoreFrame() const; 305 Frame* focusedCoreFrame() const;
302 306
303 // Returns the currently focused Element or null if no element has focus. 307 // Returns the currently focused Element or null if no element has focus.
304 Element* focusedElement() const; 308 Element* focusedElement() const;
305 309
306 static WebViewImpl* fromPage(Page*); 310 static WebViewImpl* fromPage(Page*);
307 311
308 WebViewClient* client() { return m_client; } 312 WebViewClient* client() { return m_client; }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 CompositorWorkerProxyClient* createCompositorWorkerProxyClient(); 493 CompositorWorkerProxyClient* createCompositorWorkerProxyClient();
490 AnimationWorkletProxyClient* createAnimationWorkletProxyClient(); 494 AnimationWorkletProxyClient* createAnimationWorkletProxyClient();
491 495
492 IntSize mainFrameSize(); 496 IntSize mainFrameSize();
493 WebDisplayMode displayMode() const { return m_displayMode; } 497 WebDisplayMode displayMode() const { return m_displayMode; }
494 498
495 PageScaleConstraintsSet& pageScaleConstraintsSet() const; 499 PageScaleConstraintsSet& pageScaleConstraintsSet() const;
496 500
497 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 501 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
498 502
499 bool isTransparent() const;
500 void setIsTransparent(bool value);
501
502 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 503 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
503 504
504 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 505 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
505 506
506 // Returns the currently active WebInputMethodController which is the one 507 // Returns the currently active WebInputMethodController which is the one
507 // corresponding to the focused frame. It will return nullptr if there is no 508 // corresponding to the focused frame. It will return nullptr if there is no
508 // focused frame, or if the there is one but it belongs to a different local 509 // focused frame, or if the there is one but it belongs to a different local
509 // root. 510 // root.
510 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; 511 WebInputMethodControllerImpl* getActiveWebInputMethodController() const;
511 512
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 RefPtr<WebPagePopupImpl> m_pagePopup; 673 RefPtr<WebPagePopupImpl> m_pagePopup;
673 674
674 // This stores the last hidden page popup. If a GestureTap attempts to open 675 // This stores the last hidden page popup. If a GestureTap attempts to open
675 // the popup that is closed by its previous GestureTapDown, the popup remains 676 // the popup that is closed by its previous GestureTapDown, the popup remains
676 // closed. 677 // closed.
677 RefPtr<WebPagePopupImpl> m_lastHiddenPagePopup; 678 RefPtr<WebPagePopupImpl> m_lastHiddenPagePopup;
678 679
679 Persistent<DevToolsEmulator> m_devToolsEmulator; 680 Persistent<DevToolsEmulator> m_devToolsEmulator;
680 std::unique_ptr<PageOverlay> m_pageColorOverlay; 681 std::unique_ptr<PageOverlay> m_pageColorOverlay;
681 682
682 // Whether the webview is rendering transparently.
683 bool m_isTransparent;
684
685 // Whether the user can press tab to focus links. 683 // Whether the user can press tab to focus links.
686 bool m_tabsToLinks; 684 bool m_tabsToLinks;
687 685
688 // If set, the (plugin) node which has mouse capture. 686 // If set, the (plugin) node which has mouse capture.
689 Persistent<Node> m_mouseCaptureNode; 687 Persistent<Node> m_mouseCaptureNode;
690 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 688 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
691 689
692 WebLayerTreeView* m_layerTreeView; 690 WebLayerTreeView* m_layerTreeView;
693 std::unique_ptr<CompositorAnimationHost> m_animationHost; 691 std::unique_ptr<CompositorAnimationHost> m_animationHost;
694 692
695 WebLayer* m_rootLayer; 693 WebLayer* m_rootLayer;
696 GraphicsLayer* m_rootGraphicsLayer; 694 GraphicsLayer* m_rootGraphicsLayer;
697 GraphicsLayer* m_visualViewportContainerLayer; 695 GraphicsLayer* m_visualViewportContainerLayer;
698 bool m_matchesHeuristicsForGpuRasterization; 696 bool m_matchesHeuristicsForGpuRasterization;
699 static const WebInputEvent* m_currentInputEvent; 697 static const WebInputEvent* m_currentInputEvent;
700 698
701 MediaKeysClientImpl m_mediaKeysClientImpl; 699 MediaKeysClientImpl m_mediaKeysClientImpl;
702 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; 700 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation;
703 WebPoint m_positionOnFlingStart; 701 WebPoint m_positionOnFlingStart;
704 WebPoint m_globalPositionOnFlingStart; 702 WebPoint m_globalPositionOnFlingStart;
705 int m_flingModifier; 703 int m_flingModifier;
706 WebGestureDevice m_flingSourceDevice; 704 WebGestureDevice m_flingSourceDevice;
707 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; 705 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights;
708 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; 706 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline;
709 std::unique_ptr<FullscreenController> m_fullscreenController; 707 std::unique_ptr<FullscreenController> m_fullscreenController;
710 708
711 WebColor m_baseBackgroundColor; 709 WebColor m_baseBackgroundColor;
712 bool m_baseBackgroundColorOverrideEnabled; 710 bool m_baseBackgroundColorOverrideEnabled;
713 WebColor m_baseBackgroundColorOverride; 711 WebColor m_baseBackgroundColorOverride;
712 bool m_backgroundColorOverrideEnabled;
714 WebColor m_backgroundColorOverride; 713 WebColor m_backgroundColorOverride;
715 float m_zoomFactorOverride; 714 float m_zoomFactorOverride;
716 715
717 bool m_userGestureObserved; 716 bool m_userGestureObserved;
718 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; 717 bool m_shouldDispatchFirstVisuallyNonEmptyLayout;
719 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; 718 bool m_shouldDispatchFirstLayoutAfterFinishedParsing;
720 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; 719 bool m_shouldDispatchFirstLayoutAfterFinishedLoading;
721 WebDisplayMode m_displayMode; 720 WebDisplayMode m_displayMode;
722 721
723 FloatSize m_elasticOverscroll; 722 FloatSize m_elasticOverscroll;
(...skipping 20 matching lines...) Expand all
744 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 743 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
745 }; 744 };
746 745
747 // We have no ways to check if the specified WebView is an instance of 746 // We have no ways to check if the specified WebView is an instance of
748 // WebViewImpl because WebViewImpl is the only implementation of WebView. 747 // WebViewImpl because WebViewImpl is the only implementation of WebView.
749 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
750 749
751 } // namespace blink 750 } // namespace blink
752 751
753 #endif 752 #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