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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 &response_value)); | 371 &response_value)); |
372 } | 372 } |
373 | 373 |
374 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) { | 374 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) { |
375 bool succeeded; | 375 bool succeeded; |
376 sender_->Send(new AutomationMsg_DeleteCookie(url, name, handle_, | 376 sender_->Send(new AutomationMsg_DeleteCookie(url, name, handle_, |
377 &succeeded)); | 377 &succeeded)); |
378 return succeeded; | 378 return succeeded; |
379 } | 379 } |
380 | 380 |
381 bool TabProxy::ShowCollectedCookiesDialog() { | |
382 bool succeeded = false; | |
383 return sender_->Send(new AutomationMsg_ShowCollectedCookiesDialog( | |
384 handle_, &succeeded)) && succeeded; | |
385 } | |
386 | |
387 int TabProxy::InspectElement(int x, int y) { | 381 int TabProxy::InspectElement(int x, int y) { |
388 if (!is_valid()) | 382 if (!is_valid()) |
389 return -1; | 383 return -1; |
390 | 384 |
391 int ret = -1; | 385 int ret = -1; |
392 sender_->Send(new AutomationMsg_InspectElement(handle_, x, y, &ret)); | 386 sender_->Send(new AutomationMsg_InspectElement(handle_, x, y, &ret)); |
393 return ret; | 387 return ret; |
394 } | 388 } |
395 | 389 |
396 bool TabProxy::GetDownloadDirectory(FilePath* directory) { | 390 bool TabProxy::GetDownloadDirectory(FilePath* directory) { |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 json)); | 744 json)); |
751 } | 745 } |
752 | 746 |
753 void TabProxy::FirstObjectAdded() { | 747 void TabProxy::FirstObjectAdded() { |
754 AddRef(); | 748 AddRef(); |
755 } | 749 } |
756 | 750 |
757 void TabProxy::LastObjectRemoved() { | 751 void TabProxy::LastObjectRemoved() { |
758 Release(); | 752 Release(); |
759 } | 753 } |
OLD | NEW |