| Index: ui/gfx/size.cc
|
| diff --git a/ui/gfx/size.cc b/ui/gfx/size.cc
|
| index 6b72aedec7449895dca1ec2371b50745eb9a8c25..2723b6c20a7df94e1232e441678c99736f92c055 100644
|
| --- a/ui/gfx/size.cc
|
| +++ b/ui/gfx/size.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -10,12 +10,13 @@
|
| #include <CoreGraphics/CGGeometry.h>
|
| #endif
|
|
|
| -#include <ostream>
|
| -
|
| #include "base/logging.h"
|
| +#include "base/stringprintf.h"
|
|
|
| namespace gfx {
|
|
|
| +Size::Size() : width_(0), height_(0) {}
|
| +
|
| Size::Size(int width, int height) {
|
| set_width(width);
|
| set_height(height);
|
| @@ -63,8 +64,8 @@ void Size::set_height(int height) {
|
| height_ = height;
|
| }
|
|
|
| -std::ostream& operator<<(std::ostream& out, const gfx::Size& s) {
|
| - return out << s.width() << "x" << s.height();
|
| +std::string Size::ToString() const {
|
| + return base::StringPrintf("%dx%d", width_, height_);
|
| }
|
|
|
| } // namespace gfx
|
|
|