OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webdriver/frame_path.h" | 5 #include "chrome/test/webdriver/frame_path.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 | 8 |
9 namespace webdriver { | 9 namespace webdriver { |
10 | 10 |
11 FramePath::FramePath() : path_("") {} | 11 FramePath::FramePath() {} |
12 | 12 |
13 FramePath::FramePath(const FramePath& other) : path_(other.path_) {} | 13 FramePath::FramePath(const FramePath& other) : path_(other.path_) {} |
14 | 14 |
15 FramePath::FramePath(const std::string& path) : path_(path) {} | 15 FramePath::FramePath(const std::string& path) : path_(path) {} |
16 | 16 |
17 FramePath::~FramePath() {} | 17 FramePath::~FramePath() {} |
18 | 18 |
19 FramePath& FramePath::operator=(const FramePath& other) { | 19 FramePath& FramePath::operator=(const FramePath& other) { |
20 path_ = other.path_; | 20 path_ = other.path_; |
21 return *this; | 21 return *this; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 bool FramePath::IsSubframe() const { | 67 bool FramePath::IsSubframe() const { |
68 return path_.length(); | 68 return path_.length(); |
69 } | 69 } |
70 | 70 |
71 const std::string& FramePath::value() const { | 71 const std::string& FramePath::value() const { |
72 return path_; | 72 return path_; |
73 } | 73 } |
74 | 74 |
75 } // namespace webdriver | 75 } // namespace webdriver |
OLD | NEW |