diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 16:13:45 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 16:13:45 +0000 |
commit | a2c5a9894846449c6ab3180339557af293975b9a (patch) | |
tree | d405bfd112208295be4b17891118527b50537e79 /chrome/browser/automation/automation_provider.cc | |
parent | f45fcf799c725a5206e5de4940cd35773ab9a697 (diff) | |
download | chromium_src-a2c5a9894846449c6ab3180339557af293975b9a.zip chromium_src-a2c5a9894846449c6ab3180339557af293975b9a.tar.gz chromium_src-a2c5a9894846449c6ab3180339557af293975b9a.tar.bz2 |
Updated the AutomationMsg_TabReposition IPC to be able to set the parent of a window.
Bug=1751431
Review URL: http://codereview.chromium.org/62042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 9a25046..37e7b7e 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -2771,7 +2771,15 @@ void AutomationProvider::OnTabReposition( return; } + if (params.set_parent) { + if (IsWindow(params.parent_window)) { + if (!SetParent(params.window, params.parent_window)) + DLOG(WARNING) << "SetParent failed. Error 0x%x" << GetLastError(); + } + } + SetWindowPos(params.window, params.window_insert_after, params.left, params.top, params.width, params.height, params.flags); } + #endif // defined(OS_WIN) |