Home | History | Annotate | Download | only in glue
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "webkit/glue/web_io_operators.h"
      6 
      7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h"
      8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
      9 #include "ui/gfx/point.h"
     10 #include "ui/gfx/rect.h"
     11 
     12 #if defined(WCHAR_T_IS_UTF32)
     13 #include "base/string16.h"
     14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
     15 #endif  // defined(WCHAR_T_IS_UTF32)
     16 
     17 namespace WebKit {
     18 
     19 #if defined(WCHAR_T_IS_UTF32)
     20 std::ostream& operator<<(std::ostream& out, const WebString& s) {
     21   return out << static_cast<string16>(s);
     22 }
     23 #endif  // defined(WCHAR_T_IS_UTF32)
     24 
     25 std::ostream& operator<<(std::ostream& out, const WebPoint& p) {
     26   return out << static_cast<gfx::Point>(p);
     27 }
     28 
     29 std::ostream& operator<<(std::ostream& out, const WebRect& p) {
     30   return out << static_cast<gfx::Rect>(p);
     31 }
     32 
     33 }  // namespace WebKit
     34