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

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

Issue 92001: Restore closed tabs into new windows when necessary, and track the windows th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/test/automation/browser_proxy.h ('k') | chrome/test/ui/ui_test.h » ('j') | 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) 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/logging.h" 9 #include "base/logging.h"
10 #include "base/platform_thread.h" 10 #include "base/platform_thread.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/test/automation/autocomplete_edit_proxy.h" 12 #include "chrome/test/automation/autocomplete_edit_proxy.h"
13 #include "chrome/test/automation/automation_constants.h" 13 #include "chrome/test/automation/automation_constants.h"
14 #include "chrome/test/automation/automation_messages.h" 14 #include "chrome/test/automation/automation_messages.h"
15 #include "chrome/test/automation/automation_proxy.h" 15 #include "chrome/test/automation/automation_proxy.h"
16 #include "chrome/test/automation/tab_proxy.h" 16 #include "chrome/test/automation/tab_proxy.h"
17 #include "chrome/test/automation/window_proxy.h" 17 #include "chrome/test/automation/window_proxy.h"
18 18
19 using base::TimeDelta; 19 using base::TimeDelta;
20 using base::TimeTicks; 20 using base::TimeTicks;
21 21
22
22 bool BrowserProxy::ActivateTab(int tab_index) { 23 bool BrowserProxy::ActivateTab(int tab_index) {
23 return ActivateTabWithTimeout(tab_index, base::kNoTimeout, NULL); 24 return ActivateTabWithTimeout(tab_index, base::kNoTimeout, NULL);
24 } 25 }
25 26
26 bool BrowserProxy::ActivateTabWithTimeout(int tab_index, uint32 timeout_ms, 27 bool BrowserProxy::ActivateTabWithTimeout(int tab_index, uint32 timeout_ms,
27 bool* is_timeout) { 28 bool* is_timeout) {
28 if (!is_valid()) 29 if (!is_valid())
29 return false; 30 return false;
30 31
31 int activate_tab_response = -1; 32 int activate_tab_response = -1;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 int autocomplete_edit_handle = 0; 388 int autocomplete_edit_handle = 0;
388 389
389 sender_->Send(new AutomationMsg_AutocompleteEditForBrowser( 390 sender_->Send(new AutomationMsg_AutocompleteEditForBrowser(
390 0, handle_, &handle_ok, &autocomplete_edit_handle)); 391 0, handle_, &handle_ok, &autocomplete_edit_handle));
391 392
392 if (!handle_ok) 393 if (!handle_ok)
393 return NULL; 394 return NULL;
394 395
395 return new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle); 396 return new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle);
396 } 397 }
OLDNEW
« no previous file with comments | « chrome/test/automation/browser_proxy.h ('k') | chrome/test/ui/ui_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698