Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: ui/gfx/geometry/scroll_offset.cc

Issue 584503005: Make scroll offset type of float in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link crbug to TODO Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/geometry/scroll_offset.h ('k') | ui/gfx/geometry/scroll_offset_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/gfx/geometry/scroll_offset.h ('k') | ui/gfx/geometry/scroll_offset_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698