| 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_commands.h" | 5 #include "chrome/test/chromedriver/element_commands.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <cmath> | 9 #include <cmath> |
| 8 #include <list> | 10 #include <list> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 13 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 14 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 15 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
| 16 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 WebView* web_view, | 544 WebView* web_view, |
| 543 const std::string& element_id, | 545 const std::string& element_id, |
| 544 const base::DictionaryValue& params, | 546 const base::DictionaryValue& params, |
| 545 scoped_ptr<base::Value>* value) { | 547 scoped_ptr<base::Value>* value) { |
| 546 std::string other_element_id; | 548 std::string other_element_id; |
| 547 if (!params.GetString("other", &other_element_id)) | 549 if (!params.GetString("other", &other_element_id)) |
| 548 return Status(kUnknownError, "'other' must be a string"); | 550 return Status(kUnknownError, "'other' must be a string"); |
| 549 value->reset(new base::FundamentalValue(element_id == other_element_id)); | 551 value->reset(new base::FundamentalValue(element_id == other_element_id)); |
| 550 return Status(kOk); | 552 return Status(kOk); |
| 551 } | 553 } |
| OLD | NEW |