summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/automation_provider_win.cc')
-rw-r--r--chrome/browser/automation/automation_provider_win.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc
index 9a227cd..70a8049 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;