blob: 1b0abb5f6d3d4b48d2d075b119811f24564f111a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2008 Google Inc. All Rights Reserved.
#include "base/gfx/size.h"
#import <CoreGraphics/CoreGraphics.h>
#include <ostream>
namespace gfx {
CGSize Size::ToCGSize() const {
CGSize s;
s.width = width_;
s.height = height_;
return s;
}
std::ostream& operator<<(std::ostream& out, const gfx::Size& s) {
return out << s.width() << "x" << s.height();
}
} // namespace gfx
|