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

Side by Side Diff: chrome/test/automation/tab_proxy.h

Issue 10033001: Convert printing ui_tests to browser_tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 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/common/automation_messages_internal.h ('k') | chrome/test/automation/tab_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" // NOLINT 9 #include "build/build_config.h" // NOLINT
10 10
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 // Returns the type of the page currently showing (normal, interstitial, 283 // Returns the type of the page currently showing (normal, interstitial,
284 // error). 284 // error).
285 bool GetPageType(content::PageType* page_type) WARN_UNUSED_RESULT; 285 bool GetPageType(content::PageType* page_type) WARN_UNUSED_RESULT;
286 286
287 // Simulates the user action on the SSL blocking page. if |proceed| is true, 287 // Simulates the user action on the SSL blocking page. if |proceed| is true,
288 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me 288 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me
289 // out of there' button. 289 // out of there' button.
290 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; 290 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT;
291 291
292 // Prints the current page without user intervention.
293 bool PrintNow() WARN_UNUSED_RESULT;
294
295 // Sends off an asynchronous request for printing. 292 // Sends off an asynchronous request for printing.
296 bool PrintAsync() WARN_UNUSED_RESULT; 293 bool PrintAsync() WARN_UNUSED_RESULT;
297 294
298 // Save the current web page. |file_name| is the HTML file name, and 295 // Save the current web page. |file_name| is the HTML file name, and
299 // |dir_path| is the directory for saving resource files. |type| indicates 296 // |dir_path| is the directory for saving resource files. |type| indicates
300 // which type we're saving as: HTML only or the complete web page. 297 // which type we're saving as: HTML only or the complete web page.
301 bool SavePage(const FilePath& file_name, const FilePath& dir_path, 298 bool SavePage(const FilePath& file_name, const FilePath& dir_path,
302 content::SavePageType type) WARN_UNUSED_RESULT; 299 content::SavePageType type) WARN_UNUSED_RESULT;
303 300
304 // Retrieves the number of info-bars currently showing in |count|. 301 // Retrieves the number of info-bars currently showing in |count|.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 const std::wstring& frame_xpath, 398 const std::wstring& frame_xpath,
402 const std::wstring& jscript) WARN_UNUSED_RESULT; 399 const std::wstring& jscript) WARN_UNUSED_RESULT;
403 400
404 private: 401 private:
405 base::Lock list_lock_; // Protects the observers_list_. 402 base::Lock list_lock_; // Protects the observers_list_.
406 ObserverList<TabProxyDelegate> observers_list_; 403 ObserverList<TabProxyDelegate> observers_list_;
407 DISALLOW_COPY_AND_ASSIGN(TabProxy); 404 DISALLOW_COPY_AND_ASSIGN(TabProxy);
408 }; 405 };
409 406
410 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 407 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698