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

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

Issue 1685213002: Propagate window coordinates to out-of-process iframes renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sendscreenrects
Patch Set: fixing ordering in DepictFrameTree Created 4 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 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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "content/child/webmessageportchannel_impl.h" 42 #include "content/child/webmessageportchannel_impl.h"
43 #include "content/common/content_constants_internal.h" 43 #include "content/common/content_constants_internal.h"
44 #include "content/common/content_switches_internal.h" 44 #include "content/common/content_switches_internal.h"
45 #include "content/common/database_messages.h" 45 #include "content/common/database_messages.h"
46 #include "content/common/dom_storage/dom_storage_types.h" 46 #include "content/common/dom_storage/dom_storage_types.h"
47 #include "content/common/drag_messages.h" 47 #include "content/common/drag_messages.h"
48 #include "content/common/frame_messages.h" 48 #include "content/common/frame_messages.h"
49 #include "content/common/frame_replication_state.h" 49 #include "content/common/frame_replication_state.h"
50 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 50 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
51 #include "content/common/input_messages.h" 51 #include "content/common/input_messages.h"
52 #include "content/common/page_messages.h"
52 #include "content/common/pepper_messages.h" 53 #include "content/common/pepper_messages.h"
53 #include "content/common/site_isolation_policy.h" 54 #include "content/common/site_isolation_policy.h"
54 #include "content/common/ssl_status_serialization.h" 55 #include "content/common/ssl_status_serialization.h"
55 #include "content/common/view_messages.h" 56 #include "content/common/view_messages.h"
56 #include "content/public/common/bindings_policy.h" 57 #include "content/public/common/bindings_policy.h"
57 #include "content/public/common/content_client.h" 58 #include "content/public/common/content_client.h"
58 #include "content/public/common/content_constants.h" 59 #include "content/public/common/content_constants.h"
59 #include "content/public/common/content_switches.h" 60 #include "content/public/common/content_switches.h"
60 #include "content/public/common/drop_data.h" 61 #include "content/public/common/drop_data.h"
61 #include "content/public/common/favicon_url.h" 62 #include "content/public/common/favicon_url.h"
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1396 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1396 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu) 1397 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu)
1397 // TODO(viettrungluu): Move to a separate message filter. 1398 // TODO(viettrungluu): Move to a separate message filter.
1398 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength, 1399 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength,
1399 OnSetHistoryOffsetAndLength) 1400 OnSetHistoryOffsetAndLength)
1400 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) 1401 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
1401 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1402 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1402 OnReleaseDisambiguationPopupBitmap) 1403 OnReleaseDisambiguationPopupBitmap)
1403 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1404 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1404 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1405 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1406 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1407 OnUpdateWindowScreenRect)
1405 #if defined(OS_ANDROID) 1408 #if defined(OS_ANDROID)
1406 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1409 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1407 OnUpdateTopControlsState) 1410 OnUpdateTopControlsState)
1408 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1411 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1409 #elif defined(OS_MACOSX) 1412 #elif defined(OS_MACOSX)
1410 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1413 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1411 OnGetRenderedText) 1414 OnGetRenderedText)
1412 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, 1415 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted,
1413 OnPluginImeCompositionCompleted) 1416 OnPluginImeCompositionCompleted)
1414 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 1417 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 history_list_offset_ = history_offset; 1505 history_list_offset_ = history_offset;
1503 history_list_length_ = history_length; 1506 history_list_length_ = history_length;
1504 } 1507 }
1505 1508
1506 void RenderViewImpl::OnSetInitialFocus(bool reverse) { 1509 void RenderViewImpl::OnSetInitialFocus(bool reverse) {
1507 if (!webview()) 1510 if (!webview())
1508 return; 1511 return;
1509 webview()->setInitialFocus(reverse); 1512 webview()->setInitialFocus(reverse);
1510 } 1513 }
1511 1514
1515 void RenderViewImpl::OnUpdateWindowScreenRect(gfx::Rect window_screen_rect) {
1516 RenderWidget::OnUpdateWindowScreenRect(window_screen_rect);
1517 }
1518
1512 #if defined(OS_MACOSX) 1519 #if defined(OS_MACOSX)
1513 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) { 1520 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) {
1514 if (!webview()) 1521 if (!webview())
1515 return; 1522 return;
1516 if (in_live_resize) 1523 if (in_live_resize)
1517 webview()->willStartLiveResize(); 1524 webview()->willStartLiveResize();
1518 else 1525 else
1519 webview()->willEndLiveResize(); 1526 webview()->willEndLiveResize();
1520 } 1527 }
1521 #endif 1528 #endif
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after
3532 if (IsUseZoomForDSFEnabled()) { 3539 if (IsUseZoomForDSFEnabled()) {
3533 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3540 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3534 } else { 3541 } else {
3535 webview()->setDeviceScaleFactor(device_scale_factor_); 3542 webview()->setDeviceScaleFactor(device_scale_factor_);
3536 } 3543 }
3537 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3544 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3538 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3545 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3539 } 3546 }
3540 3547
3541 } // namespace content 3548 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698