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

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

Issue 1147283002: Add ScrollDirectionPhysical enum in Scroll types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a conflict on EventHandler Created 5 years, 7 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
« no previous file with comments | « Source/web/WebPluginScrollbarImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); 454 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
455 455
456 virtual void setVisibilityState(WebPageVisibilityState, bool) override; 456 virtual void setVisibilityState(WebPageVisibilityState, bool) override;
457 457
458 PopupContainer* selectPopup() const { return m_selectPopup.get(); } 458 PopupContainer* selectPopup() const { return m_selectPopup.get(); }
459 bool hasOpenedPopup() const { return m_selectPopup || m_pagePopup; } 459 bool hasOpenedPopup() const { return m_selectPopup || m_pagePopup; }
460 460
461 // Returns true if the event leads to scrolling. 461 // Returns true if the event leads to scrolling.
462 static bool mapKeyCodeForScroll( 462 static bool mapKeyCodeForScroll(
463 int keyCode, 463 int keyCode,
464 ScrollDirection*, 464 ScrollDirectionPhysical*,
465 ScrollGranularity*); 465 ScrollGranularity*);
466 466
467 // Called by a full frame plugin inside this view to inform it that its 467 // Called by a full frame plugin inside this view to inform it that its
468 // zoom level has been updated. The plugin should only call this function 468 // zoom level has been updated. The plugin should only call this function
469 // if the zoom change was triggered by the browser, it's only needed in case 469 // if the zoom change was triggered by the browser, it's only needed in case
470 // a plugin can update its own zoom, say because of its own UI. 470 // a plugin can update its own zoom, say because of its own UI.
471 void fullFramePluginZoomLevelChanged(double zoomLevel); 471 void fullFramePluginZoomLevelChanged(double zoomLevel);
472 472
473 void computeScaleAndScrollForBlockRect(const WebPoint& hitPoint, const WebRe ct& blockRect, float padding, float defaultScaleWhenAlreadyLegible, float& scale , WebPoint& scroll); 473 void computeScaleAndScrollForBlockRect(const WebPoint& hitPoint, const WebRe ct& blockRect, float padding, float defaultScaleWhenAlreadyLegible, float& scale , WebPoint& scroll);
474 Node* bestTapNode(const GestureEventWithHitTestResults& targetedTapEvent); 474 Node* bestTapNode(const GestureEventWithHitTestResults& targetedTapEvent);
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 }; 772 };
773 773
774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
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 | « Source/web/WebPluginScrollbarImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698