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

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

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/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/renderer/render_view.cc ('k') | chrome/test/automation/automation_proxy_uitest.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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "app/message_box_flags.h"
13 #include "base/basictypes.h" 12 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
15 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
16 #include "base/process_util.h" 15 #include "base/process_util.h"
17 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
18 #include "base/time.h" 17 #include "base/time.h"
19 #include "base/threading/thread.h" 18 #include "base/threading/thread.h"
20 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
21 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
22 #include "chrome/common/automation_constants.h" 21 #include "chrome/common/automation_constants.h"
23 #include "chrome/test/automation/automation_handle_tracker.h" 22 #include "chrome/test/automation/automation_handle_tracker.h"
24 #include "chrome/test/automation/browser_proxy.h" 23 #include "chrome/test/automation/browser_proxy.h"
25 #include "gfx/native_widget_types.h" 24 #include "gfx/native_widget_types.h"
26 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
27 #include "ipc/ipc_channel_proxy.h" 26 #include "ipc/ipc_channel_proxy.h"
28 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
29 #include "ipc/ipc_sync_channel.h" 28 #include "ipc/ipc_sync_channel.h"
29 #include "ui/base/message_box_flags.h"
30 30
31 class BrowserProxy; 31 class BrowserProxy;
32 class ExtensionProxy; 32 class ExtensionProxy;
33 class TabProxy; 33 class TabProxy;
34 class WindowProxy; 34 class WindowProxy;
35 struct ExternalTabSettings; 35 struct ExternalTabSettings;
36 36
37 // This is an interface that AutomationProxy-related objects can use to 37 // This is an interface that AutomationProxy-related objects can use to
38 // access the message-sending abilities of the Proxy. 38 // access the message-sending abilities of the Proxy.
39 class AutomationMessageSender : public IPC::Message::Sender { 39 class AutomationMessageSender : public IPC::Message::Sender {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool GetNormalBrowserWindowCount(int* num_windows) WARN_UNUSED_RESULT; 116 bool GetNormalBrowserWindowCount(int* num_windows) WARN_UNUSED_RESULT;
117 117
118 // Gets the locale of the chrome browser, currently all browsers forked from 118 // Gets the locale of the chrome browser, currently all browsers forked from
119 // the main chrome share the same UI locale, returning true on success. 119 // the main chrome share the same UI locale, returning true on success.
120 // False likely indicates an IPC error. 120 // False likely indicates an IPC error.
121 bool GetBrowserLocale(string16* locale) WARN_UNUSED_RESULT; 121 bool GetBrowserLocale(string16* locale) WARN_UNUSED_RESULT;
122 122
123 // Returns whether an app modal dialog window is showing right now (i.e., a 123 // Returns whether an app modal dialog window is showing right now (i.e., a
124 // javascript alert), and what buttons it contains. 124 // javascript alert), and what buttons it contains.
125 bool GetShowingAppModalDialog(bool* showing_app_modal_dialog, 125 bool GetShowingAppModalDialog(bool* showing_app_modal_dialog,
126 MessageBoxFlags::DialogButton* button) WARN_UNUSED_RESULT; 126 ui::MessageBoxFlags::DialogButton* button) WARN_UNUSED_RESULT;
127 127
128 // Simulates a click on a dialog button. Synchronous. 128 // Simulates a click on a dialog button. Synchronous.
129 bool ClickAppModalDialogButton( 129 bool ClickAppModalDialogButton(
130 MessageBoxFlags::DialogButton button) WARN_UNUSED_RESULT; 130 ui::MessageBoxFlags::DialogButton button) WARN_UNUSED_RESULT;
131 131
132 // Block the thread until a modal dialog is displayed. Returns true on 132 // Block the thread until a modal dialog is displayed. Returns true on
133 // success. 133 // success.
134 bool WaitForAppModalDialog() WARN_UNUSED_RESULT; 134 bool WaitForAppModalDialog() WARN_UNUSED_RESULT;
135 135
136 // Returns true if one of the tabs in any window displays given url. 136 // Returns true if one of the tabs in any window displays given url.
137 bool IsURLDisplayed(GURL url) WARN_UNUSED_RESULT; 137 bool IsURLDisplayed(GURL url) WARN_UNUSED_RESULT;
138 138
139 // Get the duration of the last |event_name| in the browser. Returns 139 // Get the duration of the last |event_name| in the browser. Returns
140 // false if the IPC failed to send. 140 // false if the IPC failed to send.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 // Delay to let the browser execute the command. 302 // Delay to let the browser execute the command.
303 base::TimeDelta command_execution_timeout_; 303 base::TimeDelta command_execution_timeout_;
304 304
305 base::PlatformThreadId listener_thread_id_; 305 base::PlatformThreadId listener_thread_id_;
306 306
307 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); 307 DISALLOW_COPY_AND_ASSIGN(AutomationProxy);
308 }; 308 };
309 309
310 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 310 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698