summaryrefslogtreecommitdiffstats
path: root/webkit/glue/web_io_operators.cc
blob: c0538634894140c3937be1a68fc2febd3264ee78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2010 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.

#include "webkit/glue/web_io_operators.h"

#include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"

#if defined(WCHAR_T_IS_UTF32)
#include "base/string16.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
#endif  // defined(WCHAR_T_IS_UTF32)

namespace WebKit {

#if defined(WCHAR_T_IS_UTF32)
std::ostream& operator<<(std::ostream& out, const WebString& s) {
  return out << static_cast<string16>(s);
}
#endif  // defined(WCHAR_T_IS_UTF32)

std::ostream& operator<<(std::ostream& out, const WebPoint& p) {
  return out << static_cast<gfx::Point>(p);
}

std::ostream& operator<<(std::ostream& out, const WebRect& p) {
  return out << static_cast<gfx::Rect>(p);
}

}  // namespace WebKit