summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-17 00:57:26 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-17 00:57:26 +0000
commit9c1a5430da331b56b19cc6c6e355ae2091b0af78 (patch)
tree2d1217458d50ce1a1e41ed9c95fbe4b8a01809b3 /chrome/test/automation/browser_proxy.cc
parentecbff386b900dee166f112ae33593bcead15f746 (diff)
downloadchromium_src-9c1a5430da331b56b19cc6c6e355ae2091b0af78.zip
chromium_src-9c1a5430da331b56b19cc6c6e355ae2091b0af78.tar.gz
chromium_src-9c1a5430da331b56b19cc6c6e355ae2091b0af78.tar.bz2
Remove all the unnused automation IPCs. These were used by UI tests that have been converted to browser_tests.
BUG=121574 Review URL: https://chromiumcodereview.appspot.com/10388175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/browser_proxy.cc')
-rw-r--r--chrome/test/automation/browser_proxy.cc132
1 files changed, 0 insertions, 132 deletions
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index 5669046..a0e18bc 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -70,17 +70,6 @@ bool BrowserProxy::AppendTab(const GURL& tab_url) {
return append_tab_response >= 0;
}
-bool BrowserProxy::AppendBackgroundTab(const GURL& tab_url) {
- if (!is_valid())
- return false;
-
- int append_tab_response = -1;
-
- sender_->Send(new AutomationMsg_AppendBackgroundTab(handle_, tab_url,
- &append_tab_response));
- return append_tab_response >= 0;
-}
-
bool BrowserProxy::GetActiveTabIndex(int* active_tab_index) const {
if (!is_valid())
return false;
@@ -175,21 +164,6 @@ bool BrowserProxy::GetType(Browser::Type* type) const {
return true;
}
-bool BrowserProxy::IsApplication(bool* is_application) {
- DCHECK(is_application);
-
- if (!is_valid())
- return false;
-
- bool success = false;
- if (!sender_->Send(new AutomationMsg_IsBrowserInApplicationMode(
- handle_, is_application, &success))) {
- return false;
- }
-
- return success;
-}
-
bool BrowserProxy::ApplyAccelerator(int id) {
return RunCommandAsync(id);
}
@@ -248,13 +222,6 @@ bool BrowserProxy::OpenFindInPage() {
// This message expects no response.
}
-bool BrowserProxy::GetFindWindowLocation(int* x, int* y) {
- if (!is_valid() || !x || !y)
- return false;
-
- return sender_->Send(new AutomationMsg_FindWindowLocation(handle_, x, y));
-}
-
bool BrowserProxy::IsFindWindowFullyVisible(bool* is_visible) {
if (!is_valid())
return false;
@@ -418,72 +385,6 @@ bool BrowserProxy::SetShelfVisible(bool is_visible) {
is_visible));
}
-bool BrowserProxy::SetIntPreference(const std::string& name, int value) {
- if (!is_valid())
- return false;
-
- bool result = false;
-
- sender_->Send(new AutomationMsg_SetIntPreference(handle_, name, value,
- &result));
- return result;
-}
-
-bool BrowserProxy::SetStringPreference(const std::string& name,
- const std::string& value) {
- if (!is_valid())
- return false;
-
- bool result = false;
-
- sender_->Send(new AutomationMsg_SetStringPreference(handle_, name, value,
- &result));
- return result;
-}
-
-bool BrowserProxy::GetBooleanPreference(const std::string& name,
- bool* value) {
- if (!is_valid())
- return false;
-
- bool result = false;
-
- sender_->Send(new AutomationMsg_GetBooleanPreference(handle_, name, value,
- &result));
- return result;
-}
-
-bool BrowserProxy::SetBooleanPreference(const std::string& name,
- bool value) {
- if (!is_valid())
- return false;
-
- bool result = false;
-
- sender_->Send(new AutomationMsg_SetBooleanPreference(handle_, name,
- value, &result));
- return result;
-}
-
-bool BrowserProxy::SetDefaultContentSetting(ContentSettingsType content_type,
- ContentSetting setting) {
- return SetContentSetting(std::string(), content_type, setting);
-}
-
-bool BrowserProxy::SetContentSetting(const std::string& host,
- ContentSettingsType content_type,
- ContentSetting setting) {
- if (!is_valid())
- return false;
-
- bool result = false;
-
- sender_->Send(new AutomationMsg_SetContentSetting(handle_, host,
- content_type, setting,
- &result));
- return result;
-}
-
bool BrowserProxy::TerminateSession() {
if (!is_valid())
return false;
@@ -520,39 +421,6 @@ scoped_refptr<WindowProxy> BrowserProxy::GetWindow() const {
return result;
}
-bool BrowserProxy::IsFullscreen(bool* is_fullscreen) {
- DCHECK(is_fullscreen);
-
- if (!is_valid())
- return false;
-
- return sender_->Send(new AutomationMsg_IsFullscreen(handle_, is_fullscreen));
-}
-
-bool BrowserProxy::IsFullscreenBubbleVisible(bool* is_visible) {
- DCHECK(is_visible);
-
- if (!is_valid())
- return false;
-
- return sender_->Send(new AutomationMsg_IsFullscreenBubbleVisible(handle_,
- is_visible));
-}
-
-bool BrowserProxy::ShutdownSessionService() {
- bool did_shutdown = false;
- bool succeeded = sender_->Send(
- new AutomationMsg_ShutdownSessionService(handle_, &did_shutdown));
-
- if (!succeeded) {
- DLOG(ERROR) <<
- "ShutdownSessionService did not complete in a timely fashion";
- return false;
- }
-
- return did_shutdown;
-}
-
bool BrowserProxy::SendJSONRequest(const std::string& request,
int timeout_ms,
std::string* response) {