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

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

Issue 1914023002: [DevTools] Apply emulation root layer transform to innerViewportContainerLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed review comment Created 4 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 float clampPageScaleFactorToLimits(float) const; 281 float clampPageScaleFactorToLimits(float) const;
282 void resetScaleStateImmediately(); 282 void resetScaleStateImmediately();
283 283
284 HitTestResult coreHitTestResultAt(const WebPoint&); 284 HitTestResult coreHitTestResultAt(const WebPoint&);
285 void invalidateRect(const IntRect&); 285 void invalidateRect(const IntRect&);
286 286
287 void setIgnoreInputEvents(bool newValue); 287 void setIgnoreInputEvents(bool newValue);
288 void setBaseBackgroundColor(WebColor); 288 void setBaseBackgroundColor(WebColor);
289 void setBackgroundColorOverride(WebColor); 289 void setBackgroundColorOverride(WebColor);
290 void setZoomFactorOverride(float); 290 void setZoomFactorOverride(float);
291 void updateShowFPSCounter();
292 void setCompositorDeviceScaleFactorOverride(float); 291 void setCompositorDeviceScaleFactorOverride(float);
293 void setRootLayerTransform(const WebSize& offset, float scale); 292 void setRootLayerTransform(const WebSize& offset, float scale);
294 293
295 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 294 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
296 295
297 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 296 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
298 297
299 Frame* focusedCoreFrame() const; 298 Frame* focusedCoreFrame() const;
300 299
301 // Returns the currently focused Element or null if no element has focus. 300 // Returns the currently focused Element or null if no element has focus.
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 706
708 // If set, the (plugin) node which has mouse capture. 707 // If set, the (plugin) node which has mouse capture.
709 Persistent<Node> m_mouseCaptureNode; 708 Persistent<Node> m_mouseCaptureNode;
710 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 709 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
711 710
712 RefPtr<UserGestureToken> m_pointerLockGestureToken; 711 RefPtr<UserGestureToken> m_pointerLockGestureToken;
713 712
714 WebLayerTreeView* m_layerTreeView; 713 WebLayerTreeView* m_layerTreeView;
715 WebLayer* m_rootLayer; 714 WebLayer* m_rootLayer;
716 GraphicsLayer* m_rootGraphicsLayer; 715 GraphicsLayer* m_rootGraphicsLayer;
716 GraphicsLayer* m_visualViewportContainerLayer;
717 bool m_matchesHeuristicsForGpuRasterization; 717 bool m_matchesHeuristicsForGpuRasterization;
718 static const WebInputEvent* m_currentInputEvent; 718 static const WebInputEvent* m_currentInputEvent;
719 719
720 MediaKeysClientImpl m_mediaKeysClientImpl; 720 MediaKeysClientImpl m_mediaKeysClientImpl;
721 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; 721 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation;
722 WebPoint m_positionOnFlingStart; 722 WebPoint m_positionOnFlingStart;
723 WebPoint m_globalPositionOnFlingStart; 723 WebPoint m_globalPositionOnFlingStart;
724 int m_flingModifier; 724 int m_flingModifier;
725 WebGestureDevice m_flingSourceDevice; 725 WebGestureDevice m_flingSourceDevice;
726 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; 726 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights;
727 OwnPtr<CompositorAnimationTimeline> m_linkHighlightsTimeline; 727 OwnPtr<CompositorAnimationTimeline> m_linkHighlightsTimeline;
728 Persistent<FullscreenController> m_fullscreenController; 728 Persistent<FullscreenController> m_fullscreenController;
729 729
730 bool m_showFPSCounter;
731 WebColor m_baseBackgroundColor; 730 WebColor m_baseBackgroundColor;
732 WebColor m_backgroundColorOverride; 731 WebColor m_backgroundColorOverride;
733 float m_zoomFactorOverride; 732 float m_zoomFactorOverride;
734 733
735 bool m_userGestureObserved; 734 bool m_userGestureObserved;
736 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; 735 bool m_shouldDispatchFirstVisuallyNonEmptyLayout;
737 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; 736 bool m_shouldDispatchFirstLayoutAfterFinishedParsing;
738 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; 737 bool m_shouldDispatchFirstLayoutAfterFinishedLoading;
739 WebDisplayMode m_displayMode; 738 WebDisplayMode m_displayMode;
740 739
(...skipping 12 matching lines...) Expand all
753 }; 752 };
754 753
755 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 754 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
756 // We have no ways to check if the specified WebView is an instance of 755 // We have no ways to check if the specified WebView is an instance of
757 // WebViewImpl because WebViewImpl is the only implementation of WebView. 756 // WebViewImpl because WebViewImpl is the only implementation of WebView.
758 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
759 758
760 } // namespace blink 759 } // namespace blink
761 760
762 #endif 761 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698