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

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

Issue 2443753002: Count presence of viewport tag as mobile-friendly
Patch Set: default false Created 4 years, 1 month 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 return m_linkHighlights[i].get(); 478 return m_linkHighlights[i].get();
479 } 479 }
480 480
481 WebSettingsImpl* settingsImpl(); 481 WebSettingsImpl* settingsImpl();
482 482
483 // Returns the bounding box of the block type node touched by the WebPoint. 483 // Returns the bounding box of the block type node touched by the WebPoint.
484 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); 484 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping);
485 485
486 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 486 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
487 487
488 bool matchesHeuristicsForGpuRasterizationForTesting() const { 488 bool isDesktopSiteOnMobileForTesting() const {
489 return m_matchesHeuristicsForGpuRasterization; 489 return m_isDesktopSiteOnMobile;
490 } 490 }
491 491
492 void updateTopControlsState(WebTopControlsState constraint, 492 void updateTopControlsState(WebTopControlsState constraint,
493 WebTopControlsState current, 493 WebTopControlsState current,
494 bool animate) override; 494 bool animate) override;
495 495
496 TopControls& topControls(); 496 TopControls& topControls();
497 // Called anytime top controls layout height or content offset have changed. 497 // Called anytime top controls layout height or content offset have changed.
498 void didUpdateTopControls(); 498 void didUpdateTopControls();
499 499
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 // If set, the (plugin) node which has mouse capture. 718 // If set, the (plugin) node which has mouse capture.
719 Persistent<Node> m_mouseCaptureNode; 719 Persistent<Node> m_mouseCaptureNode;
720 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 720 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
721 721
722 RefPtr<UserGestureToken> m_pointerLockGestureToken; 722 RefPtr<UserGestureToken> m_pointerLockGestureToken;
723 723
724 WebLayerTreeView* m_layerTreeView; 724 WebLayerTreeView* m_layerTreeView;
725 WebLayer* m_rootLayer; 725 WebLayer* m_rootLayer;
726 GraphicsLayer* m_rootGraphicsLayer; 726 GraphicsLayer* m_rootGraphicsLayer;
727 GraphicsLayer* m_visualViewportContainerLayer; 727 GraphicsLayer* m_visualViewportContainerLayer;
728 bool m_matchesHeuristicsForGpuRasterization; 728 bool m_isDesktopSiteOnMobile;
729 static const WebInputEvent* m_currentInputEvent; 729 static const WebInputEvent* m_currentInputEvent;
730 730
731 MediaKeysClientImpl m_mediaKeysClientImpl; 731 MediaKeysClientImpl m_mediaKeysClientImpl;
732 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; 732 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation;
733 WebPoint m_positionOnFlingStart; 733 WebPoint m_positionOnFlingStart;
734 WebPoint m_globalPositionOnFlingStart; 734 WebPoint m_globalPositionOnFlingStart;
735 int m_flingModifier; 735 int m_flingModifier;
736 WebGestureDevice m_flingSourceDevice; 736 WebGestureDevice m_flingSourceDevice;
737 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; 737 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights;
738 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; 738 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 772 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
773 }; 773 };
774 774
775 // We have no ways to check if the specified WebView is an instance of 775 // We have no ways to check if the specified WebView is an instance of
776 // WebViewImpl because WebViewImpl is the only implementation of WebView. 776 // WebViewImpl because WebViewImpl is the only implementation of WebView.
777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
778 778
779 } // namespace blink 779 } // namespace blink
780 780
781 #endif 781 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698