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

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

Issue 2184333002: Fix scroll anchoring during viewport resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment on m_drift Created 4 years, 4 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "public/platform/WebVector.h" 51 #include "public/platform/WebVector.h"
52 #include "public/web/WebInputEvent.h" 52 #include "public/web/WebInputEvent.h"
53 #include "public/web/WebNavigationPolicy.h" 53 #include "public/web/WebNavigationPolicy.h"
54 #include "public/web/WebPageImportanceSignals.h" 54 #include "public/web/WebPageImportanceSignals.h"
55 #include "public/web/WebView.h" 55 #include "public/web/WebView.h"
56 #include "web/ChromeClientImpl.h" 56 #include "web/ChromeClientImpl.h"
57 #include "web/ContextMenuClientImpl.h" 57 #include "web/ContextMenuClientImpl.h"
58 #include "web/EditorClientImpl.h" 58 #include "web/EditorClientImpl.h"
59 #include "web/MediaKeysClientImpl.h" 59 #include "web/MediaKeysClientImpl.h"
60 #include "web/PageWidgetDelegate.h" 60 #include "web/PageWidgetDelegate.h"
61 #include "web/ResizeViewportAnchor.h"
61 #include "web/SpellCheckerClientImpl.h" 62 #include "web/SpellCheckerClientImpl.h"
62 #include "web/StorageClientImpl.h" 63 #include "web/StorageClientImpl.h"
63 #include "web/WebExport.h" 64 #include "web/WebExport.h"
64 #include "wtf/Compiler.h" 65 #include "wtf/Compiler.h"
65 #include "wtf/HashSet.h" 66 #include "wtf/HashSet.h"
66 #include "wtf/RefCounted.h" 67 #include "wtf/RefCounted.h"
67 #include "wtf/Vector.h" 68 #include "wtf/Vector.h"
68 #include <memory> 69 #include <memory>
69 70
70 namespace blink { 71 namespace blink {
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 // Manages the layer tree created for this page in Slimming Paint v2. 767 // Manages the layer tree created for this page in Slimming Paint v2.
767 PaintArtifactCompositor m_paintArtifactCompositor; 768 PaintArtifactCompositor m_paintArtifactCompositor;
768 769
769 double m_lastFrameTimeMonotonic; 770 double m_lastFrameTimeMonotonic;
770 771
771 // TODO(lfg): This is used in order to disable compositor visibility while 772 // TODO(lfg): This is used in order to disable compositor visibility while
772 // the page is still visible. This is needed until the WebView and WebWidget 773 // the page is still visible. This is needed until the WebView and WebWidget
773 // split is complete, since in out-of-process iframes the page can be 774 // split is complete, since in out-of-process iframes the page can be
774 // visible, but the WebView should not be used as a widget. 775 // visible, but the WebView should not be used as a widget.
775 bool m_overrideCompositorVisibility; 776 bool m_overrideCompositorVisibility;
777
778 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
776 }; 779 };
777 780
778 // We have no ways to check if the specified WebView is an instance of 781 // We have no ways to check if the specified WebView is an instance of
779 // WebViewImpl because WebViewImpl is the only implementation of WebView. 782 // WebViewImpl because WebViewImpl is the only implementation of WebView.
780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
781 784
782 } // namespace blink 785 } // namespace blink
783 786
784 #endif 787 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ViewportAnchor.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698