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

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

Issue 378031: Revert 31419 - Commit Issue 255057: Unit Test for Toggling of Encoding AutoDe... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
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 #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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // Causes a click on the link of the info-bar at |info_bar_index|. If 321 // Causes a click on the link of the info-bar at |info_bar_index|. If
322 // |wait_for_navigation| is true, this call does not return until a navigation 322 // |wait_for_navigation| is true, this call does not return until a navigation
323 // has occured. 323 // has occured.
324 bool ClickSSLInfoBarLink(int info_bar_index, bool wait_for_navigation); 324 bool ClickSSLInfoBarLink(int info_bar_index, bool wait_for_navigation);
325 325
326 // Retrieves the time at which the last navigation occured. This is intended 326 // Retrieves the time at which the last navigation occured. This is intended
327 // to be used with WaitForNavigation (see below). 327 // to be used with WaitForNavigation (see below).
328 bool GetLastNavigationTime(int64* last_navigation_time); 328 bool GetLastNavigationTime(int64* last_navigation_time);
329 329
330 // Waits for a new navigation if none has occurred since 330 // Waits for a new navigation if none as occurred since |last_navigation_time|
331 // |last_navigation_time|. The purpose of this function is for operations 331 // The purpose of this function is for operations that causes asynchronous
332 // that causes asynchronous navigation to happen. 332 // navigation to happen.
333 // It is supposed to be used as follow: 333 // It is supposed to be used as follow:
334 // int64 last_nav_time; 334 // int64 last_nav_time;
335 // tab_proxy->GetLastNavigationTime(&last_nav_time); 335 // tab_proxy->GetLastNavigationTime(&last_nav_time);
336 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); 336 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation();
337 // tab_proxy->WaitForNavigation(last_nav_time); 337 // tab_proxy->WaitForNavigation(last_nav_time);
338 bool WaitForNavigation(int64 last_navigation_time); 338 bool WaitForNavigation(int64 last_navigation_time);
339 339
340 // Gets the current used encoding of the page in the tab. 340 // Gets the current used encoding of the page in the tab.
341 bool GetPageCurrentEncoding(std::string* encoding); 341 bool GetPageCurrentEncoding(std::string* encoding);
342 342
343 // Toggles encoding auto-detect of the page in the tab
344 bool ToggleEncodingAutoDetect();
345
346 // Uses the specified encoding to override encoding of the page in the tab. 343 // Uses the specified encoding to override encoding of the page in the tab.
347 bool OverrideEncoding(const std::string& encoding); 344 bool OverrideEncoding(const std::string& encoding);
348 345
349 #if defined(OS_WIN) 346 #if defined(OS_WIN)
350 // Resizes the tab window. 347 // Resizes the tab window.
351 // The parent_window parameter allows a parent to be specified for the window 348 // The parent_window parameter allows a parent to be specified for the window
352 // passed in. 349 // passed in.
353 void Reposition(HWND window, HWND window_insert_after, int left, int top, 350 void Reposition(HWND window, HWND window_insert_after, int left, int top,
354 int width, int height, int flags, HWND parent_window); 351 int width, int height, int flags, HWND parent_window);
355 352
(...skipping 20 matching lines...) Expand all
376 void OnMessageReceived(const IPC::Message& message); 373 void OnMessageReceived(const IPC::Message& message);
377 protected: 374 protected:
378 virtual ~TabProxy() {} 375 virtual ~TabProxy() {}
379 private: 376 private:
380 Lock list_lock_; // Protects the observers_list_. 377 Lock list_lock_; // Protects the observers_list_.
381 ObserverList<TabProxyDelegate> observers_list_; 378 ObserverList<TabProxyDelegate> observers_list_;
382 DISALLOW_COPY_AND_ASSIGN(TabProxy); 379 DISALLOW_COPY_AND_ASSIGN(TabProxy);
383 }; 380 };
384 381
385 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 382 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/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