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

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

Issue 1841053002: Fix mouse wheel scrolling on PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; 608 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override;
609 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) override; 609 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) override;
610 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; 610 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override;
611 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; 611 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override;
612 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 612 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
613 613
614 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest ureEvent&); 614 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest ureEvent&);
615 615
616 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); 616 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*);
617 617
618 WebGestureEvent createGestureScrollEventFromFling(WebInputEvent::Type, WebGe stureDevice) const;
619
618 void enablePopupMouseWheelEventListener(); 620 void enablePopupMouseWheelEventListener();
619 void disablePopupMouseWheelEventListener(); 621 void disablePopupMouseWheelEventListener();
620 622
621 void cancelPagePopup(); 623 void cancelPagePopup();
622 void updatePageOverlays(); 624 void updatePageOverlays();
623 625
624 float deviceScaleFactor() const; 626 float deviceScaleFactor() const;
625 627
626 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) 628 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.)
627 WebSpellCheckClient* m_spellCheckClient; 629 WebSpellCheckClient* m_spellCheckClient;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 }; 771 };
770 772
771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
772 // We have no ways to check if the specified WebView is an instance of 774 // We have no ways to check if the specified WebView is an instance of
773 // WebViewImpl because WebViewImpl is the only implementation of WebView. 775 // WebViewImpl because WebViewImpl is the only implementation of WebView.
774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
775 777
776 } // namespace blink 778 } // namespace blink
777 779
778 #endif 780 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698