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

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

Issue 10388175: Remove all the unnused automation IPCs. These were used by UI tests that have been converted to bro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/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();
-}
-
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_mac.mm ('k') | chrome/common/automation_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698