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

Side by Side Diff: chrome/test/pyautolib/pyautolib.h

Issue 6159001: Modifying some downloads hooks to act per-window (so that incognito windows c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/pyautolib/pyauto.py ('k') | chrome/test/pyautolib/pyautolib.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file declares the C++ side of PyAuto, the python interface to 5 // This file declares the C++ side of PyAuto, the python interface to
6 // Chromium automation. It access Chromium's internals using Automation Proxy. 6 // Chromium automation. It access Chromium's internals using Automation Proxy.
7 7
8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
10 #pragma once 10 #pragma once
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // |browser_dir| is the path to dir containing chromium binaries. 47 // |browser_dir| is the path to dir containing chromium binaries.
48 void Initialize(const FilePath& browser_dir); 48 void Initialize(const FilePath& browser_dir);
49 49
50 // SetUp,TearDown is redeclared as public to make it accessible from swig. 50 // SetUp,TearDown is redeclared as public to make it accessible from swig.
51 virtual void SetUp(); 51 virtual void SetUp();
52 virtual void TearDown(); 52 virtual void TearDown();
53 53
54 // Navigate to the given URL in the active tab. Blocks until page loaded. 54 // Navigate to the given URL in the active tab. Blocks until page loaded.
55 void NavigateToURL(const char* url_string); 55 void NavigateToURL(const char* url_string);
56 56
57 // Navigate to the given URL in the active tab in the given window.
58 void NavigateToURL(const char* url_string, int window_index);
59
57 // Navigate to the given URL in given tab in the given window. 60 // Navigate to the given URL in given tab in the given window.
58 // Blocks until page loaded. 61 // Blocks until page loaded.
59 void NavigateToURL(const char* url_string, int window_index, int tab_index); 62 void NavigateToURL(const char* url_string, int window_index, int tab_index);
60 63
61 // Reloads the active tab in the given window. 64 // Reloads the active tab in the given window.
62 // Blocks until page reloaded. 65 // Blocks until page reloaded.
63 void ReloadActiveTab(int window_index = 0); 66 void ReloadActiveTab(int window_index = 0);
64 67
65 // Get the URL of the active tab. 68 // Get the URL of the active tab.
66 GURL GetActiveTabURL(int window_index = 0); 69 GURL GetActiveTabURL(int window_index = 0);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Enables PostTask to main thread. 191 // Enables PostTask to main thread.
189 // Should be shared across multiple instances of PyUITestBase so that this 192 // Should be shared across multiple instances of PyUITestBase so that this
190 // class is re-entrant and multiple instances can be created. 193 // class is re-entrant and multiple instances can be created.
191 // This is necessary since python's unittest module creates instances of 194 // This is necessary since python's unittest module creates instances of
192 // TestCase at load time itself. 195 // TestCase at load time itself.
193 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); 196 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type);
194 static MessageLoop* message_loop_; 197 static MessageLoop* message_loop_;
195 }; 198 };
196 199
197 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 200 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto.py ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698