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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/DevToolsEmulator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 4d24be35443228d0754cdf97dce901129f26620c..ddb64a39b87ba664bb7fbf7f9063af5db0fb94ec 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -103,6 +103,7 @@
#include "web/ColorChooserPopupUIController.h"
#include "web/ColorChooserUIController.h"
#include "web/DateTimeChooserImpl.h"
+#include "web/DevToolsEmulator.h"
#include "web/ExternalDateTimeChooser.h"
#include "web/ExternalPopupMenu.h"
#include "web/IndexedDBClientImpl.h"
@@ -116,6 +117,7 @@
#include "web/WebPluginContainerImpl.h"
#include "web/WebSettingsImpl.h"
#include "web/WebViewImpl.h"
+#include "wtf/Optional.h"
#include "wtf/PtrUtil.h"
#include "wtf/text/CString.h"
#include "wtf/text/CharacterNames.h"
@@ -604,6 +606,11 @@ WebScreenInfo ChromeClientImpl::screenInfo() const
return m_webView->client() ? m_webView->client()->screenInfo() : WebScreenInfo();
}
+WTF::Optional<IntRect> ChromeClientImpl::visibleContentRectForPainting() const
+{
+ return m_webView->devToolsEmulator()->visibleContentRectForPainting();
+}
+
void ChromeClientImpl::contentsSizeChanged(LocalFrame* frame, const IntSize& size) const
{
m_webView->didChangeContentsSize();
@@ -617,6 +624,11 @@ void ChromeClientImpl::pageScaleFactorChanged() const
m_webView->pageScaleFactorChanged();
}
+void ChromeClientImpl::mainFrameScrollOffsetChanged() const
+{
+ m_webView->mainFrameScrollOffsetChanged();
+}
+
float ChromeClientImpl::clampPageScaleFactorToLimits(float scale) const
{
return m_webView->clampPageScaleFactorToLimits(scale);
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/DevToolsEmulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698