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(); |
-} |