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

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

Issue 338067: Gets AutomationProxyVisibleTest.WindowGetViewBounds to pass on... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/browser/automation/automation_provider_views.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_win.cc
===================================================================
--- chrome/browser/automation/automation_provider_win.cc (revision 30355)
+++ chrome/browser/automation/automation_provider_win.cc (working copy)
@@ -75,30 +75,6 @@
*handle = window_tracker_->Add(window);
}
-void AutomationProvider::WindowGetViewBounds(int handle, int view_id,
- bool screen_coordinates,
- bool* success,
- gfx::Rect* bounds) {
- *success = false;
- if (window_tracker_->ContainsHandle(handle)) {
- gfx::NativeWindow window = window_tracker_->GetResource(handle);
- views::RootView* root_view = views::WidgetWin::FindRootView(window);
- if (root_view) {
- views::View* view = root_view->GetViewByID(view_id);
- if (view) {
- *success = true;
- gfx::Point point;
- if (screen_coordinates)
- views::View::ConvertPointToScreen(view, &point);
- else
- views::View::ConvertPointToView(view, root_view, &point);
- *bounds = view->GetLocalBounds(false);
- bounds->set_origin(point);
- }
- }
- }
-}
-
// 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 {
« no previous file with comments | « chrome/browser/automation/automation_provider_views.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698