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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. 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
« no previous file with comments | « content/common/page_messages.h ('k') | content/renderer/render_widget.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 OnSetHistoryOffsetAndLength) 1325 OnSetHistoryOffsetAndLength)
1326 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1326 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1327 OnReleaseDisambiguationPopupBitmap) 1327 OnReleaseDisambiguationPopupBitmap)
1328 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1328 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1329 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1329 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1330 1330
1331 // Page messages. 1331 // Page messages.
1332 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect, 1332 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1333 OnUpdateWindowScreenRect) 1333 OnUpdateWindowScreenRect)
1334 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel) 1334 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel)
1335 IPC_MESSAGE_HANDLER(PageMsg_SetDeviceScaleFactor, OnSetDeviceScaleFactor);
1335 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden) 1336 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden)
1336 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown) 1337 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown)
1337 1338
1338 #if defined(OS_ANDROID) 1339 #if defined(OS_ANDROID)
1339 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1340 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1340 OnUpdateTopControlsState) 1341 OnUpdateTopControlsState)
1341 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1342 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1342 #elif defined(OS_MACOSX) 1343 #elif defined(OS_MACOSX)
1343 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1344 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1344 OnGetRenderedText) 1345 OnGetRenderedText)
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 return render_frame->focused_pepper_plugin(); 3079 return render_frame->focused_pepper_plugin();
3079 } 3080 }
3080 frame = frame->traverseNext(false); 3081 frame = frame->traverseNext(false);
3081 } 3082 }
3082 3083
3083 return nullptr; 3084 return nullptr;
3084 } 3085 }
3085 #endif 3086 #endif
3086 3087
3087 } // namespace content 3088 } // namespace content
OLDNEW
« no previous file with comments | « content/common/page_messages.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698