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/chrome/web_view_impl.h" | 5 #include "chrome/test/chromedriver/chrome/web_view_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" | 16 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" |
17 #include "chrome/test/chromedriver/chrome/dom_tracker.h" | 17 #include "chrome/test/chromedriver/chrome/dom_tracker.h" |
18 #include "chrome/test/chromedriver/chrome/frame_tracker.h" | 18 #include "chrome/test/chromedriver/chrome/frame_tracker.h" |
19 #include "chrome/test/chromedriver/chrome/geolocation_override_manager.h" | 19 #include "chrome/test/chromedriver/chrome/geolocation_override_manager.h" |
20 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h" | 20 #include "chrome/test/chromedriver/chrome/javascript_dialog_manager.h" |
21 #include "chrome/test/chromedriver/chrome/js.h" | 21 #include "chrome/test/chromedriver/chrome/js.h" |
22 #include "chrome/test/chromedriver/chrome/log.h" | 22 #include "chrome/test/chromedriver/chrome/log.h" |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 if (status.IsError()) | 573 if (status.IsError()) |
574 return status; | 574 return status; |
575 | 575 |
576 if (!cmd_result->GetInteger("nodeId", node_id)) | 576 if (!cmd_result->GetInteger("nodeId", node_id)) |
577 return Status(kUnknownError, "DOM.requestNode missing int 'nodeId'"); | 577 return Status(kUnknownError, "DOM.requestNode missing int 'nodeId'"); |
578 *found_node = true; | 578 *found_node = true; |
579 return Status(kOk); | 579 return Status(kOk); |
580 } | 580 } |
581 | 581 |
582 } // namespace internal | 582 } // namespace internal |
OLD | NEW |