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

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

Issue 971813002: Add a callback from Blink to Chromium for when page scale changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | public/web/WebViewClient.h » ('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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 4107 matching lines...) Expand 10 before | Expand all | Expand 10 after
4118 void WebViewImpl::didChangeContentsSize() 4118 void WebViewImpl::didChangeContentsSize()
4119 { 4119 {
4120 m_pageScaleConstraintsSet.didChangeContentsSize(contentsSize(), pageScaleFac tor()); 4120 m_pageScaleConstraintsSet.didChangeContentsSize(contentsSize(), pageScaleFac tor());
4121 } 4121 }
4122 4122
4123 void WebViewImpl::pageScaleFactorChanged() 4123 void WebViewImpl::pageScaleFactorChanged()
4124 { 4124 {
4125 m_pageScaleConstraintsSet.setNeedsReset(false); 4125 m_pageScaleConstraintsSet.setNeedsReset(false);
4126 updateLayerTreeViewport(); 4126 updateLayerTreeViewport();
4127 m_page->inspectorController().pageScaleFactorChanged(); 4127 m_page->inspectorController().pageScaleFactorChanged();
4128 m_client->pageScaleFactorChanged();
4128 } 4129 }
4129 4130
4130 bool WebViewImpl::useExternalPopupMenus() 4131 bool WebViewImpl::useExternalPopupMenus()
4131 { 4132 {
4132 return shouldUseExternalPopupMenus; 4133 return shouldUseExternalPopupMenus;
4133 } 4134 }
4134 4135
4135 void WebViewImpl::startDragging(LocalFrame* frame, 4136 void WebViewImpl::startDragging(LocalFrame* frame,
4136 const WebDragData& dragData, 4137 const WebDragData& dragData,
4137 WebDragOperationsMask mask, 4138 WebDragOperationsMask mask,
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
4671 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4672 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4672 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4673 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4673 } 4674 }
4674 4675
4675 void WebViewImpl::forceNextWebGLContextCreationToFail() 4676 void WebViewImpl::forceNextWebGLContextCreationToFail()
4676 { 4677 {
4677 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4678 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4678 } 4679 }
4679 4680
4680 } // namespace blink 4681 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698