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

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: addressing comments 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
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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive) 1395 IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
1395 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu) 1396 IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu)
1396 // TODO(viettrungluu): Move to a separate message filter. 1397 // TODO(viettrungluu): Move to a separate message filter.
1397 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength, 1398 IPC_MESSAGE_HANDLER(ViewMsg_SetHistoryOffsetAndLength,
1398 OnSetHistoryOffsetAndLength) 1399 OnSetHistoryOffsetAndLength)
1399 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) 1400 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode)
1400 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap, 1401 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
1401 OnReleaseDisambiguationPopupBitmap) 1402 OnReleaseDisambiguationPopupBitmap)
1402 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw) 1403 IPC_MESSAGE_HANDLER(ViewMsg_ForceRedraw, OnForceRedraw)
1403 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret) 1404 IPC_MESSAGE_HANDLER(ViewMsg_SelectWordAroundCaret, OnSelectWordAroundCaret)
1405 IPC_MESSAGE_HANDLER(PageMsg_UpdateWindowScreenRect,
1406 OnUpdateWindowScreenRect)
1404 #if defined(OS_ANDROID) 1407 #if defined(OS_ANDROID)
1405 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState, 1408 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTopControlsState,
1406 OnUpdateTopControlsState) 1409 OnUpdateTopControlsState)
1407 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData) 1410 IPC_MESSAGE_HANDLER(ViewMsg_ExtractSmartClipData, OnExtractSmartClipData)
1408 #elif defined(OS_MACOSX) 1411 #elif defined(OS_MACOSX)
1409 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText, 1412 IPC_MESSAGE_HANDLER(ViewMsg_GetRenderedText,
1410 OnGetRenderedText) 1413 OnGetRenderedText)
1411 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, 1414 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted,
1412 OnPluginImeCompositionCompleted) 1415 OnPluginImeCompositionCompleted)
1413 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 1416 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 history_list_offset_ = history_offset; 1504 history_list_offset_ = history_offset;
1502 history_list_length_ = history_length; 1505 history_list_length_ = history_length;
1503 } 1506 }
1504 1507
1505 void RenderViewImpl::OnSetInitialFocus(bool reverse) { 1508 void RenderViewImpl::OnSetInitialFocus(bool reverse) {
1506 if (!webview()) 1509 if (!webview())
1507 return; 1510 return;
1508 webview()->setInitialFocus(reverse); 1511 webview()->setInitialFocus(reverse);
1509 } 1512 }
1510 1513
1514 void RenderViewImpl::OnUpdateWindowScreenRect(gfx::Rect window_screen_rect) {
1515 RenderWidget::OnUpdateWindowScreenRect(window_screen_rect);
1516 }
1517
1511 #if defined(OS_MACOSX) 1518 #if defined(OS_MACOSX)
1512 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) { 1519 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) {
1513 if (!webview()) 1520 if (!webview())
1514 return; 1521 return;
1515 if (in_live_resize) 1522 if (in_live_resize)
1516 webview()->willStartLiveResize(); 1523 webview()->willStartLiveResize();
1517 else 1524 else
1518 webview()->willEndLiveResize(); 1525 webview()->willEndLiveResize();
1519 } 1526 }
1520 #endif 1527 #endif
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
3549 if (IsUseZoomForDSFEnabled()) { 3556 if (IsUseZoomForDSFEnabled()) {
3550 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3557 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3551 } else { 3558 } else {
3552 webview()->setDeviceScaleFactor(device_scale_factor_); 3559 webview()->setDeviceScaleFactor(device_scale_factor_);
3553 } 3560 }
3554 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3561 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3555 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3562 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3556 } 3563 }
3557 3564
3558 } // namespace content 3565 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698