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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10544060: Merge 140030 - Revert 124453 - WebWidgetClient::screenInfo() no longer does a synchronous IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 OnMsgTextInputStateChanged) 276 OnMsgTextInputStateChanged)
277 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCompositionRangeChanged, 277 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCompositionRangeChanged,
278 OnMsgImeCompositionRangeChanged) 278 OnMsgImeCompositionRangeChanged)
279 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCancelComposition, 279 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCancelComposition,
280 OnMsgImeCancelComposition) 280 OnMsgImeCancelComposition)
281 IPC_MESSAGE_HANDLER(ViewHostMsg_DidActivateAcceleratedCompositing, 281 IPC_MESSAGE_HANDLER(ViewHostMsg_DidActivateAcceleratedCompositing,
282 OnMsgDidActivateAcceleratedCompositing) 282 OnMsgDidActivateAcceleratedCompositing)
283 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse) 283 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse)
284 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse) 284 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse)
285 #if defined(OS_POSIX) || defined(USE_AURA) 285 #if defined(OS_POSIX) || defined(USE_AURA)
286 IPC_MESSAGE_HANDLER(ViewHostMsg_GetScreenInfo, OnMsgGetScreenInfo)
286 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect) 287 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect)
287 IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect) 288 IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect)
288 #endif 289 #endif
289 #if defined(OS_MACOSX) 290 #if defined(OS_MACOSX)
290 IPC_MESSAGE_HANDLER(ViewHostMsg_PluginFocusChanged, 291 IPC_MESSAGE_HANDLER(ViewHostMsg_PluginFocusChanged,
291 OnMsgPluginFocusChanged) 292 OnMsgPluginFocusChanged)
292 IPC_MESSAGE_HANDLER(ViewHostMsg_StartPluginIme, 293 IPC_MESSAGE_HANDLER(ViewHostMsg_StartPluginIme,
293 OnMsgStartPluginIme) 294 OnMsgStartPluginIme)
294 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateFakePluginWindowHandle, 295 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateFakePluginWindowHandle,
295 OnAllocateFakePluginWindowHandle) 296 OnAllocateFakePluginWindowHandle)
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 1520
1520 pending_mouse_lock_request_ = true; 1521 pending_mouse_lock_request_ = true;
1521 RequestToLockMouse(user_gesture); 1522 RequestToLockMouse(user_gesture);
1522 } 1523 }
1523 1524
1524 void RenderWidgetHostImpl::OnMsgUnlockMouse() { 1525 void RenderWidgetHostImpl::OnMsgUnlockMouse() {
1525 RejectMouseLockOrUnlockIfNecessary(); 1526 RejectMouseLockOrUnlockIfNecessary();
1526 } 1527 }
1527 1528
1528 #if defined(OS_POSIX) || defined(USE_AURA) 1529 #if defined(OS_POSIX) || defined(USE_AURA)
1530 void RenderWidgetHostImpl::OnMsgGetScreenInfo(gfx::NativeViewId window_id,
1531 WebKit::WebScreenInfo* results) {
1532 if (view_)
1533 view_->GetScreenInfo(results);
1534 else
1535 RenderWidgetHostViewPort::GetDefaultScreenInfo(results);
1536 }
1537
1529 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id, 1538 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
1530 gfx::Rect* results) { 1539 gfx::Rect* results) {
1531 if (view_) 1540 if (view_)
1532 *results = view_->GetViewBounds(); 1541 *results = view_->GetViewBounds();
1533 } 1542 }
1534 1543
1535 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, 1544 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id,
1536 gfx::Rect* results) { 1545 gfx::Rect* results) {
1537 if (view_) 1546 if (view_)
1538 *results = view_->GetRootWindowBounds(); 1547 *results = view_->GetRootWindowBounds();
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 // indicate that no callback is in progress (i.e. without this line 1816 // indicate that no callback is in progress (i.e. without this line
1808 // DelayedAutoResized will not get called again). 1817 // DelayedAutoResized will not get called again).
1809 new_auto_size_.SetSize(0, 0); 1818 new_auto_size_.SetSize(0, 0);
1810 if (!should_auto_resize_) 1819 if (!should_auto_resize_)
1811 return; 1820 return;
1812 1821
1813 OnRenderAutoResized(new_size); 1822 OnRenderAutoResized(new_size);
1814 } 1823 }
1815 1824
1816 } // namespace content 1825 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698