| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/test/automation/tab_proxy.h" | 5 #include "chrome/test/automation/tab_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/common/json_value_serializer.h" | 10 #include "chrome/common/json_value_serializer.h" |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 int top, int width, int height, int flags) { | 612 int top, int width, int height, int flags) { |
| 613 | 613 |
| 614 IPC::Reposition_Params params; | 614 IPC::Reposition_Params params; |
| 615 params.window = window; | 615 params.window = window; |
| 616 params.window_insert_after = window_insert_after; | 616 params.window_insert_after = window_insert_after; |
| 617 params.left = left; | 617 params.left = left; |
| 618 params.top = top; | 618 params.top = top; |
| 619 params.width = width; | 619 params.width = width; |
| 620 params.height = height; | 620 params.height = height; |
| 621 params.flags = flags; | 621 params.flags = flags; |
| 622 params.set_parent = false; |
| 623 params.parent_window = NULL; |
| 622 sender_->Send(new AutomationMsg_TabReposition(0, handle_, params)); | 624 sender_->Send(new AutomationMsg_TabReposition(0, handle_, params)); |
| 623 } | 625 } |
| 626 |
| 627 void TabProxy::SetParentWindow(HWND window, HWND parent_window, long flags) { |
| 628 IPC::Reposition_Params params = {0}; |
| 629 params.window = window; |
| 630 params.flags = flags; |
| 631 params.set_parent = true; |
| 632 params.parent_window = parent_window; |
| 633 |
| 634 sender_->Send(new AutomationMsg_TabReposition(0, handle_, params)); |
| 635 } |
| 636 |
| 637 |
| 624 #endif // defined(OS_WIN) | 638 #endif // defined(OS_WIN) |
| OLD | NEW |