| 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/browser_proxy.h" | 5 #include "chrome/test/automation/browser_proxy.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 if (!p) { | 450 if (!p) { |
| 451 p = new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle); | 451 p = new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle); |
| 452 p->AddRef(); | 452 p->AddRef(); |
| 453 } | 453 } |
| 454 | 454 |
| 455 // Since there is no scoped_refptr::attach. | 455 // Since there is no scoped_refptr::attach. |
| 456 scoped_refptr<AutocompleteEditProxy> result; | 456 scoped_refptr<AutocompleteEditProxy> result; |
| 457 result.swap(&p); | 457 result.swap(&p); |
| 458 return result; | 458 return result; |
| 459 } | 459 } |
| 460 |
| 461 bool BrowserProxy::IsFullscreen(bool* is_fullscreen) { |
| 462 DCHECK(is_fullscreen); |
| 463 |
| 464 if (!is_valid()) |
| 465 return false; |
| 466 |
| 467 return sender_->Send(new AutomationMsg_IsFullscreen(0, handle_, |
| 468 is_fullscreen)); |
| 469 } |
| 470 |
| 471 bool BrowserProxy::IsFullscreenBubbleVisible(bool* is_visible) { |
| 472 DCHECK(is_visible); |
| 473 |
| 474 if (!is_valid()) |
| 475 return false; |
| 476 |
| 477 return sender_->Send(new AutomationMsg_IsFullscreenBubbleVisible(0, handle_, |
| 478 is_visible)); |
| 479 } |
| OLD | NEW |