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

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: Add Mac DSF update. 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
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 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 OnSetHistoryOffsetAndLength) 1321 OnSetHistoryOffsetAndLength)
1322 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1322 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1323 OnReleaseDisambiguationPopupBitmap) 1323 OnReleaseDisambiguationPopupBitmap)
1324 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1324 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1325 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1325 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1326 1326
1327 // Page messages. 1327 // Page messages.
1328 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect, 1328 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1329 OnUpdateWindowScreenRect) 1329 OnUpdateWindowScreenRect)
1330 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel) 1330 IPC_MESSAGE_HANDLER(PageMsg_SetZoomLevel, OnSetZoomLevel)
1331 IPC_MESSAGE_HANDLER(PageMsg_SetDeviceScaleFactor, OnSetDeviceScaleFactor);
1331 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden) 1332 IPC_MESSAGE_HANDLER(PageMsg_WasHidden, OnPageWasHidden)
1332 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown) 1333 IPC_MESSAGE_HANDLER(PageMsg_WasShown, OnPageWasShown)
1333 1334
1334 #if defined(OS_ANDROID) 1335 #if defined(OS_ANDROID)
1335 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1336 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1336 OnUpdateTopControlsState) 1337 OnUpdateTopControlsState)
1337 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1338 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1338 #elif defined(OS_MACOSX) 1339 #elif defined(OS_MACOSX)
1339 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1340 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1340 OnGetRenderedText) 1341 OnGetRenderedText)
(...skipping 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 return render_frame->focused_pepper_plugin(); 3081 return render_frame->focused_pepper_plugin();
3081 } 3082 }
3082 frame = frame->traverseNext(false); 3083 frame = frame->traverseNext(false);
3083 } 3084 }
3084 3085
3085 return nullptr; 3086 return nullptr;
3086 } 3087 }
3087 #endif 3088 #endif
3088 3089
3089 } // namespace content 3090 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698