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

Side by Side 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, 2 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« 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