OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/automation/window_proxy.h" | 5 #include "chrome/test/automation/window_proxy.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/common/automation_constants.h" | 11 #include "chrome/common/automation_constants.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 return result; | 50 return result; |
51 } | 51 } |
52 | 52 |
53 bool WindowProxy::SetBounds(const gfx::Rect& bounds) { | 53 bool WindowProxy::SetBounds(const gfx::Rect& bounds) { |
54 if (!is_valid()) | 54 if (!is_valid()) |
55 return false; | 55 return false; |
56 bool result = false; | 56 bool result = false; |
57 sender_->Send(new AutomationMsg_SetWindowBounds(handle_, bounds, &result)); | 57 sender_->Send(new AutomationMsg_SetWindowBounds(handle_, bounds, &result)); |
58 return result; | 58 return result; |
59 } | 59 } |
OLD | NEW |