OLD | NEW |
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 "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/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 if (!SendGetIndicesFromTabHandleJSONRequest( | 378 if (!SendGetIndicesFromTabHandleJSONRequest( |
379 sender_, handle_, &browser_index, &tab_index, &error)) { | 379 sender_, handle_, &browser_index, &tab_index, &error)) { |
380 return false; | 380 return false; |
381 } | 381 } |
382 | 382 |
383 return SendCaptureEntirePageJSONRequest( | 383 return SendCaptureEntirePageJSONRequest( |
384 sender_, WebViewLocator::ForIndexPair(browser_index, tab_index), | 384 sender_, WebViewLocator::ForIndexPair(browser_index, tab_index), |
385 path, &error); | 385 path, &error); |
386 } | 386 } |
387 | 387 |
388 #if defined(OS_WIN) && !defined(USE_AURA) | 388 #if defined(OS_WIN) |
389 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left, | 389 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left, |
390 int top, int width, int height, int flags, | 390 int top, int width, int height, int flags, |
391 HWND parent_window) { | 391 HWND parent_window) { |
392 Reposition_Params params; | 392 Reposition_Params params; |
393 params.window = window; | 393 params.window = window; |
394 params.window_insert_after = window_insert_after; | 394 params.window_insert_after = window_insert_after; |
395 params.left = left; | 395 params.left = left; |
396 params.top = top; | 396 params.top = top; |
397 params.width = width; | 397 params.width = width; |
398 params.height = height; | 398 params.height = height; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 477 |
478 TabProxy::~TabProxy() {} | 478 TabProxy::~TabProxy() {} |
479 | 479 |
480 void TabProxy::FirstObjectAdded() { | 480 void TabProxy::FirstObjectAdded() { |
481 AddRef(); | 481 AddRef(); |
482 } | 482 } |
483 | 483 |
484 void TabProxy::LastObjectRemoved() { | 484 void TabProxy::LastObjectRemoved() { |
485 Release(); | 485 Release(); |
486 } | 486 } |
OLD | NEW |