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

Unified Diff: chrome/browser/automation/testing_automation_provider_aura.cc

Issue 10388175: Remove all the unnused automation IPCs. These were used by UI tests that have been converted to bro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/testing_automation_provider_aura.cc
===================================================================
--- chrome/browser/automation/testing_automation_provider_aura.cc (revision 137438)
+++ chrome/browser/automation/testing_automation_provider_aura.cc (working copy)
@@ -14,46 +14,10 @@
#include "ash/wm/window_util.h"
#endif
-void TestingAutomationProvider::ActivateWindow(int handle) {
-#if defined(USE_ASH)
- aura::Window* window = window_tracker_->GetResource(handle);
- if (window) {
- ash::wm::ActivateWindow(window);
- }
-#else
- NOTIMPLEMENTED();
-#endif
-}
-
-void TestingAutomationProvider::IsWindowMaximized(int handle,
- bool* is_maximized,
- bool* success) {
- aura::Window* window = window_tracker_->GetResource(handle);
- if (window) {
- *is_maximized = window->GetProperty(aura::client::kShowStateKey) ==
- ui::SHOW_STATE_MAXIMIZED;
- *success = true;
- } else {
- *success = false;
- }
-}
-
void TestingAutomationProvider::TerminateSession(int handle, bool* success) {
*success = false;
}
-void TestingAutomationProvider::GetWindowBounds(int handle,
- gfx::Rect* bounds,
- bool* success) {
- const aura::Window* window = window_tracker_->GetResource(handle);
- if (window) {
- *bounds = window->bounds();
- *success = true;
- } else {
- *success = false;
- }
-}
-
void TestingAutomationProvider::SetWindowBounds(int handle,
const gfx::Rect& bounds,
bool* success) {
@@ -65,25 +29,3 @@
*success = false;
}
}
-
-void TestingAutomationProvider::SetWindowVisible(int handle,
- bool visible,
- bool* result) {
- aura::Window* window = window_tracker_->GetResource(handle);
- if (window) {
- if (visible) {
- window->Show();
- } else {
- window->Hide();
- }
- *result = true;
- } else {
- *result = false;
- }
-}
-
-void TestingAutomationProvider::GetWindowTitle(int handle, string16* text) {
- const aura::Window* window = window_tracker_->GetResource(handle);
- DCHECK(window);
- *text = window->title();
-}
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/automation/testing_automation_provider_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698