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

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: Simpler access to device_scale_factor. Created 4 years, 5 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 // 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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 OnSetHistoryOffsetAndLength) 1326 OnSetHistoryOffsetAndLength)
1327 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1327 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1328 OnReleaseDisambiguationPopupBitmap) 1328 OnReleaseDisambiguationPopupBitmap)
1329 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1329 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1330 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1330 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1331 1331
1332 // Page messages. 1332 // Page messages.
1333 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect, 1333 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1334 OnUpdateWindowScreenRect) 1334 OnUpdateWindowScreenRect)
1335 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel) 1335 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel)
1336 IPC_MESSAGE_HANDLER(PageMsg_SetDeviceScaleFactor, SetDeviceScaleFactor);
1336 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden) 1337 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden)
1337 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown) 1338 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown)
1338 1339
1339 #if defined(OS_ANDROID) 1340 #if defined(OS_ANDROID)
1340 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1341 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1341 OnUpdateTopControlsState) 1342 OnUpdateTopControlsState)
1342 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1343 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1343 #elif defined(OS_MACOSX) 1344 #elif defined(OS_MACOSX)
1344 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1345 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1345 OnGetRenderedText) 1346 OnGetRenderedText)
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 return render_frame->focused_pepper_plugin(); 3256 return render_frame->focused_pepper_plugin();
3256 } 3257 }
3257 frame = frame->traverseNext(false); 3258 frame = frame->traverseNext(false);
3258 } 3259 }
3259 3260
3260 return nullptr; 3261 return nullptr;
3261 } 3262 }
3262 #endif 3263 #endif
3263 3264
3264 } // namespace content 3265 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698