| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/gfx/x/x11_connection.h" | 5 #include "ui/gfx/geometry/scroll_offset.h" |
| 6 | 6 |
| 7 #include <X11/Xlib.h> | 7 #include "base/strings/stringprintf.h" |
| 8 | |
| 9 #include "ui/gfx/x/x11_types.h" | |
| 10 | 8 |
| 11 namespace gfx { | 9 namespace gfx { |
| 12 | 10 |
| 13 bool InitializeThreadedX11() { | 11 std::string ScrollOffset::ToString() const { |
| 14 return XInitThreads() && gfx::GetXDisplay(); | 12 return base::StringPrintf("[%lf %lf]", x_, y_); |
| 15 } | 13 } |
| 16 | 14 |
| 17 } // namespace gfx | 15 } // namespace gfx |
| OLD | NEW |