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

Side by Side Diff: chrome/test/automation/tab_proxy.cc

Issue 7834048: Preliminary work to allow Chrome to build with USE_AURA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/common/automation_messages_internal.h ('k') | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698