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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.h

Issue 12330082: Merge 143355 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 WebFrameImpl* mainFrameImpl(); 396 WebFrameImpl* mainFrameImpl();
397 397
398 // History related methods: 398 // History related methods:
399 void observeNewNavigation(); 399 void observeNewNavigation();
400 400
401 // Event related methods: 401 // Event related methods:
402 void mouseContextMenu(const WebMouseEvent&); 402 void mouseContextMenu(const WebMouseEvent&);
403 void mouseDoubleClick(const WebMouseEvent&); 403 void mouseDoubleClick(const WebMouseEvent&);
404 404
405 bool detectContentOnTouch(const WebPoint&); 405 bool detectContentOnTouch(const WebPoint&);
406 void startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds); 406 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds);
407 407
408 void numberOfWheelEventHandlersChanged(unsigned); 408 void numberOfWheelEventHandlersChanged(unsigned);
409 void hasTouchEventHandlers(bool); 409 void hasTouchEventHandlers(bool);
410 410
411 // WebGestureCurveTarget implementation for fling. 411 // WebGestureCurveTarget implementation for fling.
412 virtual void scrollBy(const WebPoint&); 412 virtual void scrollBy(const WebPoint&);
413 413
414 // Handles context menu events orignated via the the keyboard. These 414 // Handles context menu events orignated via the the keyboard. These
415 // include the VK_APPS virtual key and the Shift+F10 combine. Code is 415 // include the VK_APPS virtual key and the Shift+F10 combine. Code is
416 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM 416 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 void fullFramePluginZoomLevelChanged(double zoomLevel); 576 void fullFramePluginZoomLevelChanged(double zoomLevel);
577 577
578 #if ENABLE(GESTURE_EVENTS) 578 #if ENABLE(GESTURE_EVENTS)
579 void computeScaleAndScrollForHitRect(const WebRect& hitRect, AutoZoomType, f loat& scale, WebPoint& scroll, bool& isAnchor); 579 void computeScaleAndScrollForHitRect(const WebRect& hitRect, AutoZoomType, f loat& scale, WebPoint& scroll, bool& isAnchor);
580 WebCore::Node* bestTapNode(const WebCore::PlatformGestureEvent& tapEvent); 580 WebCore::Node* bestTapNode(const WebCore::PlatformGestureEvent& tapEvent);
581 void enableTapHighlight(const WebCore::PlatformGestureEvent& tapEvent); 581 void enableTapHighlight(const WebCore::PlatformGestureEvent& tapEvent);
582 void computeScaleAndScrollForFocusedNode(WebCore::Node* focusedNode, float& scale, WebCore::IntPoint& scroll, bool& needAnimation); 582 void computeScaleAndScrollForFocusedNode(WebCore::Node* focusedNode, float& scale, WebCore::IntPoint& scroll, bool& needAnimation);
583 #endif 583 #endif
584 void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType); 584 void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType);
585 585
586 void shouldUseAnimateDoubleTapTimeZeroForTesting(bool); 586 void enableFakeDoubleTapAnimationForTesting(bool);
587 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; }
588 WebCore::IntPoint fakeDoubleTapTargetPositionForTesting() const { return m_f akeDoubleTapTargetPosition; }
589 float fakeDoubleTapPageScaleFactorForTesting() const { return m_fakeDoubleTa pPageScaleFactor; }
590 bool fakeDoubleTapUseAnchorForTesting() const { return m_fakeDoubleTapUseAnc hor; }
587 591
588 void enterFullScreenForElement(WebCore::Element*); 592 void enterFullScreenForElement(WebCore::Element*);
589 void exitFullScreenForElement(WebCore::Element*); 593 void exitFullScreenForElement(WebCore::Element*);
590 594
591 // Exposed for the purpose of overriding device metrics. 595 // Exposed for the purpose of overriding device metrics.
592 void sendResizeEventAndRepaint(); 596 void sendResizeEventAndRepaint();
593 597
594 // Exposed for testing purposes. 598 // Exposed for testing purposes.
595 bool hasHorizontalScrollbar(); 599 bool hasHorizontalScrollbar();
596 bool hasVerticalScrollbar(); 600 bool hasVerticalScrollbar();
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 float m_minimumPageScaleFactor; 760 float m_minimumPageScaleFactor;
757 float m_maximumPageScaleFactor; 761 float m_maximumPageScaleFactor;
758 float m_initialPageScaleFactor; 762 float m_initialPageScaleFactor;
759 bool m_ignoreViewportTagMaximumScale; 763 bool m_ignoreViewportTagMaximumScale;
760 bool m_pageScaleFactorIsSet; 764 bool m_pageScaleFactorIsSet;
761 765
762 // Saved page scale state. 766 // Saved page scale state.
763 float m_savedPageScaleFactor; // 0 means that no page scale factor is saved. 767 float m_savedPageScaleFactor; // 0 means that no page scale factor is saved.
764 WebCore::IntSize m_savedScrollOffset; 768 WebCore::IntSize m_savedScrollOffset;
765 769
766 // Whether the current scale was achieved by zooming in with double tap. 770 // The scale moved to by the latest double tap zoom, if any.
767 bool m_doubleTapZoomInEffect; 771 float m_doubleTapZoomPageScaleFactor;
772 // Have we sent a double-tap zoom and not yet heard back the scale?
773 bool m_doubleTapZoomPending;
768 774
769 // Used for testing purposes. 775 // Used for testing purposes.
770 bool m_shouldUseDoubleTapTimeZero; 776 bool m_enableFakeDoubleTapAnimationForTesting;
777 WebCore::IntPoint m_fakeDoubleTapTargetPosition;
778 float m_fakeDoubleTapPageScaleFactor;
779 bool m_fakeDoubleTapUseAnchor;
771 780
772 bool m_contextMenuAllowed; 781 bool m_contextMenuAllowed;
773 782
774 bool m_doingDragAndDrop; 783 bool m_doingDragAndDrop;
775 784
776 bool m_ignoreInputEvents; 785 bool m_ignoreInputEvents;
777 786
778 // Webkit expects keyPress events to be suppressed if the associated keyDown 787 // Webkit expects keyPress events to be suppressed if the associated keyDown
779 // event was handled. Safari implements this behavior by peeking out the 788 // event was handled. Safari implements this behavior by peeking out the
780 // associated WM_CHAR event if the keydown was handled. We emulate 789 // associated WM_CHAR event if the keydown was handled. We emulate
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 906
898 bool m_showFPSCounter; 907 bool m_showFPSCounter;
899 bool m_showPaintRects; 908 bool m_showPaintRects;
900 bool m_showDebugBorders; 909 bool m_showDebugBorders;
901 bool m_continuousPaintingEnabled; 910 bool m_continuousPaintingEnabled;
902 }; 911 };
903 912
904 } // namespace WebKit 913 } // namespace WebKit
905 914
906 #endif 915 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698