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

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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Another rebase Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebInputEventConversion.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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 DragAction, 623 DragAction,
624 int keyModifiers); 624 int keyModifiers);
625 625
626 void configureAutoResizeMode(); 626 void configureAutoResizeMode();
627 627
628 void setIsAcceleratedCompositingActive(bool); 628 void setIsAcceleratedCompositingActive(bool);
629 void doComposite(); 629 void doComposite();
630 void doPixelReadbackToCanvas(WebCanvas*, const WebCore::IntRect&); 630 void doPixelReadbackToCanvas(WebCanvas*, const WebCore::IntRect&);
631 void reallocateRenderer(); 631 void reallocateRenderer();
632 void updateLayerTreeViewport(); 632 void updateLayerTreeViewport();
633 void updateRootLayerTransform();
634 void updateLayerTreeDeviceScaleFactor();
633 635
634 // Helper function: Widens the width of |source| by the specified margins 636 // Helper function: Widens the width of |source| by the specified margins
635 // while keeping it smaller than page width. 637 // while keeping it smaller than page width.
636 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i nt minimumMargin); 638 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i nt minimumMargin);
637 639
638 void pointerLockMouseEvent(const WebInputEvent&); 640 void pointerLockMouseEvent(const WebInputEvent&);
639 641
640 // PageWidgetEventHandler functions 642 // PageWidgetEventHandler functions
641 virtual void handleMouseLeave(WebCore::Frame&, const WebMouseEvent&) OVERRID E; 643 virtual void handleMouseLeave(WebCore::Frame&, const WebMouseEvent&) OVERRID E;
642 virtual void handleMouseDown(WebCore::Frame&, const WebMouseEvent&) OVERRIDE ; 644 virtual void handleMouseDown(WebCore::Frame&, const WebMouseEvent&) OVERRIDE ;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 WebCore::IntPoint m_fakePageScaleAnimationTargetPosition; 724 WebCore::IntPoint m_fakePageScaleAnimationTargetPosition;
723 float m_fakePageScaleAnimationPageScaleFactor; 725 float m_fakePageScaleAnimationPageScaleFactor;
724 bool m_fakePageScaleAnimationUseAnchor; 726 bool m_fakePageScaleAnimationUseAnchor;
725 727
726 bool m_contextMenuAllowed; 728 bool m_contextMenuAllowed;
727 729
728 bool m_doingDragAndDrop; 730 bool m_doingDragAndDrop;
729 731
730 bool m_ignoreInputEvents; 732 bool m_ignoreInputEvents;
731 733
734 float m_compositorDeviceScaleFactorOverride;
735 float m_rootLayerScale;
736
732 // Webkit expects keyPress events to be suppressed if the associated keyDown 737 // Webkit expects keyPress events to be suppressed if the associated keyDown
733 // event was handled. Safari implements this behavior by peeking out the 738 // event was handled. Safari implements this behavior by peeking out the
734 // associated WM_CHAR event if the keydown was handled. We emulate 739 // associated WM_CHAR event if the keydown was handled. We emulate
735 // this behavior by setting this flag if the keyDown was handled. 740 // this behavior by setting this flag if the keyDown was handled.
736 bool m_suppressNextKeypressEvent; 741 bool m_suppressNextKeypressEvent;
737 742
738 // Represents whether or not this object should process incoming IME events. 743 // Represents whether or not this object should process incoming IME events.
739 bool m_imeAcceptEvents; 744 bool m_imeAcceptEvents;
740 745
741 // The available drag operations (copy, move link...) allowed by the source. 746 // The available drag operations (copy, move link...) allowed by the source.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 inline WebViewImpl* toWebViewImpl(WebView* webView) 838 inline WebViewImpl* toWebViewImpl(WebView* webView)
834 { 839 {
835 // We have no ways to check if the specified WebView is an instance of 840 // We have no ways to check if the specified WebView is an instance of
836 // WebViewImpl because WebViewImpl is the only implementation of WebView. 841 // WebViewImpl because WebViewImpl is the only implementation of WebView.
837 return static_cast<WebViewImpl*>(webView); 842 return static_cast<WebViewImpl*>(webView);
838 } 843 }
839 844
840 } // namespace WebKit 845 } // namespace WebKit
841 846
842 #endif 847 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698