Index: chrome/browser/automation/automation_provider_win.cc |
diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc |
index 9a227cd42cb7f018d29da1441e733fceba167026..70a80490d9abdd88d340d719cfa82600732a89d3 100644 |
--- a/chrome/browser/automation/automation_provider_win.cc |
+++ b/chrome/browser/automation/automation_provider_win.cc |
@@ -73,22 +73,6 @@ BOOL CALLBACK EnumThreadWndProc(HWND hwnd, LPARAM l_param) { |
return TRUE; |
} |
-void AutomationProvider::GetActiveWindow(int* handle) { |
- HWND window = GetForegroundWindow(); |
- |
- // Let's make sure this window belongs to our process. |
- if (EnumThreadWindows(::GetCurrentThreadId(), |
- EnumThreadWndProc, |
- reinterpret_cast<LPARAM>(window))) { |
- // We enumerated all the windows and did not find the foreground window, |
- // it is not our window, ignore it. |
- *handle = 0; |
- return; |
- } |
- |
- *handle = window_tracker_->Add(window); |
-} |
- |
// This task enqueues a mouse event on the event loop, so that the view |
// that it's being sent to can do the requisite post-processing. |
class MouseEventTask : public Task { |
@@ -271,25 +255,6 @@ void AutomationProvider::SetWindowVisible(int handle, bool visible, |
} |
} |
-void AutomationProvider::ActivateWindow(int handle) { |
- if (window_tracker_->ContainsHandle(handle)) { |
- ::SetActiveWindow(window_tracker_->GetResource(handle)); |
- } |
-} |
- |
-void AutomationProvider::IsWindowMaximized(int handle, bool* is_maximized, |
- bool* success) { |
- *success = false; |
- |
- HWND hwnd = window_tracker_->GetResource(handle); |
- if (hwnd) { |
- *success = true; |
- WINDOWPLACEMENT window_placement; |
- GetWindowPlacement(hwnd, &window_placement); |
- *is_maximized = (window_placement.showCmd == SW_MAXIMIZE); |
- } |
-} |
- |
void AutomationProvider::GetTabHWND(int handle, HWND* tab_hwnd) { |
*tab_hwnd = NULL; |