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

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

Issue 3191015: GTTF: next batch of automation separation. (Closed)
Patch Set: tryservers Created 10 years, 4 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/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;
« no previous file with comments | « chrome/browser/automation/automation_provider_mac.mm ('k') | chrome/browser/automation/testing_automation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698