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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 954923005: Make command-zero reset page scale in addition to zoom level (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 8dad3e7904accddb5d06e94501e0e4fc02ede46d..cd387340e89f001bbc62058163badd875df87d29 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2427,6 +2427,10 @@ int WebContentsImpl::GetMaximumZoomPercent() const {
return maximum_zoom_percent_;
}
+void WebContentsImpl::ResetPageScale() {
+ Send(new ViewMsg_ResetPageScale(GetRoutingID()));
+}
+
gfx::Size WebContentsImpl::GetPreferredSize() const {
return capturer_count_ == 0 ? preferred_size_ : preferred_size_for_capture_;
}

Powered by Google App Engine
This is Rietveld 408576698