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

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: properly rebasing Created 4 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 | « content/renderer/render_view_impl.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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/input_event_utils.h" 51 #include "content/common/input/input_event_utils.h"
52 #include "content/common/input_messages.h" 52 #include "content/common/input_messages.h"
53 #include "content/common/page_messages.h"
53 #include "content/common/pepper_messages.h" 54 #include "content/common/pepper_messages.h"
54 #include "content/common/site_isolation_policy.h" 55 #include "content/common/site_isolation_policy.h"
55 #include "content/common/ssl_status_serialization.h" 56 #include "content/common/ssl_status_serialization.h"
56 #include "content/common/view_messages.h" 57 #include "content/common/view_messages.h"
57 #include "content/public/common/bindings_policy.h" 58 #include "content/public/common/bindings_policy.h"
58 #include "content/public/common/content_client.h" 59 #include "content/public/common/content_client.h"
59 #include "content/public/common/content_constants.h" 60 #include "content/public/common/content_constants.h"
60 #include "content/public/common/content_switches.h" 61 #include "content/public/common/content_switches.h"
61 #include "content/public/common/drop_data.h" 62 #include "content/public/common/drop_data.h"
62 #include "content/public/common/favicon_url.h" 63 #include "content/public/common/favicon_url.h"
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1397 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1397 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu) 1398 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu)
1398 // TODO(viettrungluu): Move to a separate message filter. 1399 // TODO(viettrungluu): Move to a separate message filter.
1399 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength, 1400 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength,
1400 OnSetHistoryOffsetAndLength) 1401 OnSetHistoryOffsetAndLength)
1401 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) 1402 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
1402 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1403 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1403 OnReleaseDisambiguationPopupBitmap) 1404 OnReleaseDisambiguationPopupBitmap)
1404 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1405 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1405 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1406 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1407 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1408 OnUpdateWindowScreenRect)
1406 #if defined(OS_ANDROID) 1409 #if defined(OS_ANDROID)
1407 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1410 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1408 OnUpdateTopControlsState) 1411 OnUpdateTopControlsState)
1409 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1412 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1410 #elif defined(OS_MACOSX) 1413 #elif defined(OS_MACOSX)
1411 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1414 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1412 OnGetRenderedText) 1415 OnGetRenderedText)
1413 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, 1416 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted,
1414 OnPluginImeCompositionCompleted) 1417 OnPluginImeCompositionCompleted)
1415 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 1418 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 history_list_offset_ = history_offset; 1506 history_list_offset_ = history_offset;
1504 history_list_length_ = history_length; 1507 history_list_length_ = history_length;
1505 } 1508 }
1506 1509
1507 void RenderViewImpl::OnSetInitialFocus(bool reverse) { 1510 void RenderViewImpl::OnSetInitialFocus(bool reverse) {
1508 if (!webview()) 1511 if (!webview())
1509 return; 1512 return;
1510 webview()->setInitialFocus(reverse); 1513 webview()->setInitialFocus(reverse);
1511 } 1514 }
1512 1515
1516 void RenderViewImpl::OnUpdateWindowScreenRect(gfx::Rect window_screen_rect) {
1517 RenderWidget::OnUpdateWindowScreenRect(window_screen_rect);
1518 }
1519
1513 #if defined(OS_MACOSX) 1520 #if defined(OS_MACOSX)
1514 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) { 1521 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) {
1515 if (!webview()) 1522 if (!webview())
1516 return; 1523 return;
1517 if (in_live_resize) 1524 if (in_live_resize)
1518 webview()->willStartLiveResize(); 1525 webview()->willStartLiveResize();
1519 else 1526 else
1520 webview()->willEndLiveResize(); 1527 webview()->willEndLiveResize();
1521 } 1528 }
1522 #endif 1529 #endif
(...skipping 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after
3544 if (IsUseZoomForDSFEnabled()) { 3551 if (IsUseZoomForDSFEnabled()) {
3545 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3552 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3546 } else { 3553 } else {
3547 webview()->setDeviceScaleFactor(device_scale_factor_); 3554 webview()->setDeviceScaleFactor(device_scale_factor_);
3548 } 3555 }
3549 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3556 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3550 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3557 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3551 } 3558 }
3552 3559
3553 } // namespace content 3560 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698