Remove dependency on ui::ScaleFactor from ui/gfx
[chromium-blink-merge.git] / dbus / object_path.cc
blob8606b6bbca1962b884eefdc077ebd1ef73f4fb35
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
3 // found in the LICENSE file.
5 #include "dbus/object_path.h"
7 #include <ostream>
9 #include "dbus/string_util.h"
11 namespace dbus {
13 bool ObjectPath::IsValid() const {
14 return IsValidObjectPath(value_);
17 bool ObjectPath::operator<(const ObjectPath& that) const {
18 return value_ < that.value_;
21 bool ObjectPath::operator==(const ObjectPath& that) const {
22 return value_ == that.value_;
25 bool ObjectPath::operator!=(const ObjectPath& that) const {
26 return value_ != that.value_;
29 void PrintTo(const ObjectPath& path, std::ostream* out) {
30 *out << path.value();
33 } // namespace dbus