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

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

Issue 20179: Reverting 9388. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
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 <wtypes.h> 8 #include <wtypes.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // This sets the keyboard accelerators to be used by an externally 212 // This sets the keyboard accelerators to be used by an externally
213 // hosted tab. This call is not valid on a regular tab hosted within 213 // hosted tab. This call is not valid on a regular tab hosted within
214 // Chrome. 214 // Chrome.
215 bool SetAccelerators(HACCEL accel_table, int accel_table_entry_count); 215 bool SetAccelerators(HACCEL accel_table, int accel_table_entry_count);
216 216
217 // The container of an externally hosted tab calls this to reflect any 217 // The container of an externally hosted tab calls this to reflect any
218 // accelerator keys that it did not process. This gives the tab a chance 218 // accelerator keys that it did not process. This gives the tab a chance
219 // to handle the keys 219 // to handle the keys
220 bool ProcessUnhandledAccelerator(const MSG& msg); 220 bool ProcessUnhandledAccelerator(const MSG& msg);
221 221
222 // Ask the tab to set focus to either the first or last element on the page.
223 bool SetInitialFocus(bool reverse);
224
225 // Waits for the tab to finish being restored. Returns true on success. 222 // Waits for the tab to finish being restored. Returns true on success.
226 // timeout_ms gives the max amount of time to wait for restore to complete. 223 // timeout_ms gives the max amount of time to wait for restore to complete.
227 bool WaitForTabToBeRestored(uint32 timeout_ms); 224 bool WaitForTabToBeRestored(uint32 timeout_ms);
228 225
229 // Retrieves the different security states for the current tab. 226 // Retrieves the different security states for the current tab.
230 bool GetSecurityState(SecurityStyle* security_style, 227 bool GetSecurityState(SecurityStyle* security_style,
231 int* ssl_cert_status, 228 int* ssl_cert_status,
232 int* mixed_content_state); 229 int* mixed_content_state);
233 230
234 // Returns the type of the page currently showing (normal, interstitial, 231 // Returns the type of the page currently showing (normal, interstitial,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 279
283 // Uses the specified encoding to override encoding of the page in the tab. 280 // Uses the specified encoding to override encoding of the page in the tab.
284 bool OverrideEncoding(const std::wstring& encoding); 281 bool OverrideEncoding(const std::wstring& encoding);
285 282
286 private: 283 private:
287 DISALLOW_COPY_AND_ASSIGN(TabProxy); 284 DISALLOW_COPY_AND_ASSIGN(TabProxy);
288 }; 285 };
289 286
290 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 287 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
291 288
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