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

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

Issue 2704213002: [devtools] Allow transparent base background color overrides. (Closed)
Patch Set: Created 3 years, 10 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 float minimumPageScaleFactor() const; 279 float minimumPageScaleFactor() const;
280 float maximumPageScaleFactor() const; 280 float maximumPageScaleFactor() const;
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 setBaseBackgroundColor(WebColor); 287 void setBaseBackgroundColor(WebColor);
288 void setBaseBackgroundColorOverride(WebColor); 288 void setBaseBackgroundColorOverride(WebColor);
289 void clearBaseBackgroundColorOverride();
289 void setBackgroundColorOverride(WebColor); 290 void setBackgroundColorOverride(WebColor);
290 void setZoomFactorOverride(float); 291 void setZoomFactorOverride(float);
291 void setCompositorDeviceScaleFactorOverride(float); 292 void setCompositorDeviceScaleFactorOverride(float);
292 void setDeviceEmulationTransform(const TransformationMatrix&); 293 void setDeviceEmulationTransform(const TransformationMatrix&);
293 TransformationMatrix getDeviceEmulationTransformForTesting() const; 294 TransformationMatrix getDeviceEmulationTransformForTesting() const;
294 295
295 Color baseBackgroundColor() const; 296 Color baseBackgroundColor() const;
296 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 297 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
297 298
298 Frame* focusedCoreFrame() const; 299 Frame* focusedCoreFrame() const;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; 700 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation;
700 WebPoint m_positionOnFlingStart; 701 WebPoint m_positionOnFlingStart;
701 WebPoint m_globalPositionOnFlingStart; 702 WebPoint m_globalPositionOnFlingStart;
702 int m_flingModifier; 703 int m_flingModifier;
703 WebGestureDevice m_flingSourceDevice; 704 WebGestureDevice m_flingSourceDevice;
704 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; 705 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights;
705 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; 706 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline;
706 std::unique_ptr<FullscreenController> m_fullscreenController; 707 std::unique_ptr<FullscreenController> m_fullscreenController;
707 708
708 WebColor m_baseBackgroundColor; 709 WebColor m_baseBackgroundColor;
710 bool m_baseBackgroundColorOverrideEnabled;
709 WebColor m_baseBackgroundColorOverride; 711 WebColor m_baseBackgroundColorOverride;
710 WebColor m_backgroundColorOverride; 712 WebColor m_backgroundColorOverride;
711 float m_zoomFactorOverride; 713 float m_zoomFactorOverride;
712 714
713 bool m_userGestureObserved; 715 bool m_userGestureObserved;
714 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; 716 bool m_shouldDispatchFirstVisuallyNonEmptyLayout;
715 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; 717 bool m_shouldDispatchFirstLayoutAfterFinishedParsing;
716 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; 718 bool m_shouldDispatchFirstLayoutAfterFinishedLoading;
717 WebDisplayMode m_displayMode; 719 WebDisplayMode m_displayMode;
718 720
(...skipping 21 matching lines...) Expand all
740 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
741 }; 743 };
742 744
743 // We have no ways to check if the specified WebView is an instance of 745 // We have no ways to check if the specified WebView is an instance of
744 // WebViewImpl because WebViewImpl is the only implementation of WebView. 746 // WebViewImpl because WebViewImpl is the only implementation of WebView.
745 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
746 748
747 } // namespace blink 749 } // namespace blink
748 750
749 #endif 751 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698