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

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

Issue 192017: Convert std::wstring encoding names to std::string in a bunch of files. (Closed)
Patch Set: mac and linux fixes Created 11 years, 3 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
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // The purpose of this function is for operations that causes asynchronous 297 // The purpose of this function is for operations that causes asynchronous
298 // navigation to happen. 298 // navigation to happen.
299 // It is supposed to be used as follow: 299 // It is supposed to be used as follow:
300 // int64 last_nav_time; 300 // int64 last_nav_time;
301 // tab_proxy->GetLastNavigationTime(&last_nav_time); 301 // tab_proxy->GetLastNavigationTime(&last_nav_time);
302 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); 302 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation();
303 // tab_proxy->WaitForNavigation(last_nav_time); 303 // tab_proxy->WaitForNavigation(last_nav_time);
304 bool WaitForNavigation(int64 last_navigation_time); 304 bool WaitForNavigation(int64 last_navigation_time);
305 305
306 // Gets the current used encoding of the page in the tab. 306 // Gets the current used encoding of the page in the tab.
307 bool GetPageCurrentEncoding(std::wstring* encoding); 307 bool GetPageCurrentEncoding(std::string* encoding);
308 308
309 // Uses the specified encoding to override encoding of the page in the tab. 309 // Uses the specified encoding to override encoding of the page in the tab.
310 bool OverrideEncoding(const std::wstring& encoding); 310 bool OverrideEncoding(const std::string& encoding);
311 311
312 #if defined(OS_WIN) 312 #if defined(OS_WIN)
313 // Resizes the tab window. 313 // Resizes the tab window.
314 // The parent_window parameter allows a parent to be specified for the window 314 // The parent_window parameter allows a parent to be specified for the window
315 // passed in. 315 // passed in.
316 void Reposition(HWND window, HWND window_insert_after, int left, int top, 316 void Reposition(HWND window, HWND window_insert_after, int left, int top,
317 int width, int height, int flags, HWND parent_window); 317 int width, int height, int flags, HWND parent_window);
318 318
319 // Sends the selected context menu command to the chrome instance 319 // Sends the selected context menu command to the chrome instance
320 void SendContextMenuCommand(int selected_command); 320 void SendContextMenuCommand(int selected_command);
(...skipping 19 matching lines...) Expand all
340 void OnMessageReceived(const IPC::Message& message); 340 void OnMessageReceived(const IPC::Message& message);
341 protected: 341 protected:
342 virtual ~TabProxy() {} 342 virtual ~TabProxy() {}
343 private: 343 private:
344 Lock list_lock_; // Protects the observers_list_. 344 Lock list_lock_; // Protects the observers_list_.
345 ObserverList<TabProxyDelegate> observers_list_; 345 ObserverList<TabProxyDelegate> observers_list_;
346 DISALLOW_COPY_AND_ASSIGN(TabProxy); 346 DISALLOW_COPY_AND_ASSIGN(TabProxy);
347 }; 347 };
348 348
349 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 349 #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