Index: chrome/browser/automation/testing_automation_provider_win.cc |
=================================================================== |
--- chrome/browser/automation/testing_automation_provider_win.cc (revision 137438) |
+++ chrome/browser/automation/testing_automation_provider_win.cc (working copy) |
@@ -12,28 +12,6 @@ |
#include "chrome/browser/automation/automation_window_tracker.h" |
#include "chrome/browser/ui/browser_window.h" |
-void TestingAutomationProvider::ActivateWindow(int handle) { |
- if (window_tracker_->ContainsHandle(handle)) { |
- ::SetActiveWindow(window_tracker_->GetResource(handle)); |
- } |
-} |
- |
-void TestingAutomationProvider::IsWindowMaximized(int handle, |
- bool* is_maximized, |
- bool* success) { |
- *success = false; |
- |
- HWND hwnd = window_tracker_->GetResource(handle); |
- if (hwnd) { |
- WINDOWPLACEMENT window_placement; |
- window_placement.length = sizeof(window_placement); |
- if (GetWindowPlacement(hwnd, &window_placement)) { |
- *success = true; |
- *is_maximized = (window_placement.showCmd == SW_MAXIMIZE); |
- } |
- } |
-} |
- |
void TestingAutomationProvider::TerminateSession(int handle, bool* success) { |
*success = false; |
@@ -44,21 +22,6 @@ |
} |
} |
-void TestingAutomationProvider::GetWindowBounds(int handle, |
- gfx::Rect* bounds, |
- bool* success) { |
- *success = false; |
- HWND hwnd = window_tracker_->GetResource(handle); |
- if (hwnd) { |
- WINDOWPLACEMENT window_placement; |
- window_placement.length = sizeof(window_placement); |
- if (GetWindowPlacement(hwnd, &window_placement)) { |
- *success = true; |
- *bounds = window_placement.rcNormalPosition; |
- } |
- } |
-} |
- |
void TestingAutomationProvider::SetWindowBounds(int handle, |
const gfx::Rect& bounds, |
bool* success) { |
@@ -71,25 +34,3 @@ |
} |
} |
} |
- |
-void TestingAutomationProvider::SetWindowVisible(int handle, |
- bool visible, |
- bool* result) { |
- if (window_tracker_->ContainsHandle(handle)) { |
- HWND hwnd = window_tracker_->GetResource(handle); |
- ::ShowWindow(hwnd, visible ? SW_SHOW : SW_HIDE); |
- *result = true; |
- } else { |
- *result = false; |
- } |
-} |
- |
-void TestingAutomationProvider::GetWindowTitle(int handle, string16* text) { |
- gfx::NativeWindow window = window_tracker_->GetResource(handle); |
- int length = ::GetWindowTextLength(window) + 1; |
- if (length > 1) |
- ::GetWindowText(window, WriteInto(text, length), length); |
- else |
- text->clear(); |
-} |
- |