OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromedriver/element_util.h" | 5 #include "chrome/test/chromedriver/element_util.h" |
6 | 6 |
7 #include "base/string_util.h" | |
8 #include "base/stringprintf.h" | |
9 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/stringprintf.h" |
10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/test/chromedriver/basic_types.h" | 13 #include "chrome/test/chromedriver/basic_types.h" |
14 #include "chrome/test/chromedriver/chrome/js.h" | 14 #include "chrome/test/chromedriver/chrome/js.h" |
15 #include "chrome/test/chromedriver/chrome/status.h" | 15 #include "chrome/test/chromedriver/chrome/status.h" |
16 #include "chrome/test/chromedriver/chrome/web_view.h" | 16 #include "chrome/test/chromedriver/chrome/web_view.h" |
17 #include "chrome/test/chromedriver/session.h" | 17 #include "chrome/test/chromedriver/session.h" |
18 #include "third_party/webdriver/atoms.h" | 18 #include "third_party/webdriver/atoms.h" |
19 | 19 |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 status = ScrollElementRegionIntoViewHelper( | 578 status = ScrollElementRegionIntoViewHelper( |
579 rit->parent_frame_id, web_view, frame_element_id, | 579 rit->parent_frame_id, web_view, frame_element_id, |
580 WebRect(region_offset, region_size), | 580 WebRect(region_offset, region_size), |
581 center, verify_clickable, ®ion_offset); | 581 center, verify_clickable, ®ion_offset); |
582 if (status.IsError()) | 582 if (status.IsError()) |
583 return status; | 583 return status; |
584 } | 584 } |
585 *location = region_offset; | 585 *location = region_offset; |
586 return Status(kOk); | 586 return Status(kOk); |
587 } | 587 } |
OLD | NEW |