| Index: ui/gfx/geometry/scroll_offset.cc
|
| diff --git a/ui/gfx/x/x11_connection.cc b/ui/gfx/geometry/scroll_offset.cc
|
| similarity index 54%
|
| copy from ui/gfx/x/x11_connection.cc
|
| copy to ui/gfx/geometry/scroll_offset.cc
|
| index c5ee77f40d8f048cb912a074f71c13da00377268..37356d83a086d308b1fcbf2fae31e904eca9912e 100644
|
| --- a/ui/gfx/x/x11_connection.cc
|
| +++ b/ui/gfx/geometry/scroll_offset.cc
|
| @@ -2,16 +2,14 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "ui/gfx/x/x11_connection.h"
|
| +#include "ui/gfx/geometry/scroll_offset.h"
|
|
|
| -#include <X11/Xlib.h>
|
| -
|
| -#include "ui/gfx/x/x11_types.h"
|
| +#include "base/strings/stringprintf.h"
|
|
|
| namespace gfx {
|
|
|
| -bool InitializeThreadedX11() {
|
| - return XInitThreads() && gfx::GetXDisplay();
|
| +std::string ScrollOffset::ToString() const {
|
| + return base::StringPrintf("[%lf %lf]", x_, y_);
|
| }
|
|
|
| } // namespace gfx
|
|
|