OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/glue/web_io_operators.h" | 5 #include "webkit/glue/web_io_operators.h" |
6 | 6 |
| 7 #include <ostream> |
| 8 |
7 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
9 #include "ui/gfx/point.h" | 11 #include "ui/gfx/point.h" |
10 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
11 | 13 |
12 #if defined(WCHAR_T_IS_UTF32) | 14 #if defined(WCHAR_T_IS_UTF32) |
13 #include "base/string16.h" | 15 #include "base/string16.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
15 #endif // defined(WCHAR_T_IS_UTF32) | 17 #endif // defined(WCHAR_T_IS_UTF32) |
16 | 18 |
17 namespace WebKit { | 19 namespace WebKit { |
18 | 20 |
19 #if defined(WCHAR_T_IS_UTF32) | 21 #if defined(WCHAR_T_IS_UTF32) |
20 std::ostream& operator<<(std::ostream& out, const WebString& s) { | 22 std::ostream& operator<<(std::ostream& out, const WebString& s) { |
21 return out << static_cast<string16>(s); | 23 return out << static_cast<string16>(s); |
22 } | 24 } |
23 #endif // defined(WCHAR_T_IS_UTF32) | 25 #endif // defined(WCHAR_T_IS_UTF32) |
24 | 26 |
25 std::ostream& operator<<(std::ostream& out, const WebPoint& p) { | 27 std::ostream& operator<<(std::ostream& out, const WebPoint& p) { |
26 return out << static_cast<gfx::Point>(p).ToString(); | 28 return out << static_cast<gfx::Point>(p).ToString(); |
27 } | 29 } |
28 | 30 |
29 std::ostream& operator<<(std::ostream& out, const WebRect& p) { | 31 std::ostream& operator<<(std::ostream& out, const WebRect& p) { |
30 return out << static_cast<gfx::Rect>(p).ToString(); | 32 return out << static_cast<gfx::Rect>(p).ToString(); |
31 } | 33 } |
32 | 34 |
33 } // namespace WebKit | 35 } // namespace WebKit |
OLD | NEW |