1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/test/automation/window_proxy.h"
10 #include "base/logging.h"
11 #include "chrome/common/automation_constants.h"
12 #include "chrome/common/automation_messages.h"
13 #include "chrome/test/automation/automation_proxy.h"
14 #include "chrome/test/automation/browser_proxy.h"
15 #include "chrome/test/automation/tab_proxy.h"
16 #include "ui/gfx/rect.h"
19 bool WindowProxy::GetViewBounds(int view_id
, gfx::Rect
* bounds
,
20 bool screen_coordinates
) {
31 if (!sender_
->Send(new AutomationMsg_WindowViewBounds(
32 handle_
, view_id
, screen_coordinates
, &result
, bounds
))) {
39 bool WindowProxy::SetBounds(const gfx::Rect
& bounds
) {
43 sender_
->Send(new AutomationMsg_SetWindowBounds(handle_
, bounds
, &result
));