OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 std::string error_msg; | 742 std::string error_msg; |
743 if (!SendGetIndicesFromTabHandleJSONRequest( | 743 if (!SendGetIndicesFromTabHandleJSONRequest( |
744 sender_, handle_, &browser_index, &tab_index, &error_msg)) { | 744 sender_, handle_, &browser_index, &tab_index, &error_msg)) { |
745 return false; | 745 return false; |
746 } | 746 } |
747 | 747 |
748 return SendCaptureEntirePageJSONRequest(sender_, browser_index, | 748 return SendCaptureEntirePageJSONRequest(sender_, browser_index, |
749 tab_index, path, &error_msg); | 749 tab_index, path, &error_msg); |
750 } | 750 } |
751 | 751 |
752 #if defined(OS_WIN) | 752 #if defined(OS_WIN) && !defined(USE_AURA) |
753 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left, | 753 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left, |
754 int top, int width, int height, int flags, | 754 int top, int width, int height, int flags, |
755 HWND parent_window) { | 755 HWND parent_window) { |
756 Reposition_Params params = {0}; | 756 Reposition_Params params = {0}; |
757 params.window = window; | 757 params.window = window; |
758 params.window_insert_after = window_insert_after; | 758 params.window_insert_after = window_insert_after; |
759 params.left = left; | 759 params.left = left; |
760 params.top = top; | 760 params.top = top; |
761 params.width = width; | 761 params.width = width; |
762 params.height = height; | 762 params.height = height; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 json)); | 850 json)); |
851 } | 851 } |
852 | 852 |
853 void TabProxy::FirstObjectAdded() { | 853 void TabProxy::FirstObjectAdded() { |
854 AddRef(); | 854 AddRef(); |
855 } | 855 } |
856 | 856 |
857 void TabProxy::LastObjectRemoved() { | 857 void TabProxy::LastObjectRemoved() { |
858 Release(); | 858 Release(); |
859 } | 859 } |
OLD | NEW |