diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 20:53:08 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 20:53:08 +0000 |
commit | 9a55b8c9af871b1e58b7f4f367b7c26fc53ab543 (patch) | |
tree | 11f261c89f79392fd66f3357aa924f4d9d4c116d /ui/base/range/range.h | |
parent | d94b1c828da3dbc06a81fdf7479f6428f0b0dcfb (diff) | |
download | chromium_src-9a55b8c9af871b1e58b7f4f367b7c26fc53ab543.zip chromium_src-9a55b8c9af871b1e58b7f4f367b7c26fc53ab543.tar.gz chromium_src-9a55b8c9af871b1e58b7f4f367b7c26fc53ab543.tar.bz2 |
Fix logging of string16s from gfx namespace on Windows.
I don't why this fixes it, but somehow having a SelectionModel << logging operator in the gfx namespace makes Visual Studio fail to find the << logging operator for string16 arguments.
Per discussion with Scott, we decided to remove the << operators altogether and replace them with a ToString() function to be consistent with Rect, Size, etc.
TEST=Check that adding a "LOG(INFO) << text();" line to RenderTextWin compiles.
Review URL: https://chromiumcodereview.appspot.com/10332205
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/range/range.h')
-rw-r--r-- | ui/base/range/range.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/base/range/range.h b/ui/base/range/range.h index a86233d..018a11c 100644 --- a/ui/base/range/range.h +++ b/ui/base/range/range.h @@ -6,7 +6,7 @@ #define UI_BASE_RANGE_RANGE_H_ #pragma once -#include <iosfwd> +#include <string> #include "base/basictypes.h" #include "ui/base/ui_export.h" @@ -103,13 +103,13 @@ class UI_EXPORT Range { #endif // GTK+ has no concept of a range. + std::string ToString() const; + private: size_t start_; size_t end_; }; -UI_EXPORT std::ostream& operator<<(std::ostream& out, const ui::Range& range); - -} // namespace gfx +} // namespace ui #endif // UI_BASE_RANGE_RANGE_H_ |