diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-22 00:17:18 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-22 00:17:18 +0000 |
commit | 01d5525529cfc2ce50833b4183a18581264ce6c0 (patch) | |
tree | d09f72df23d412d3c6d358671f721c1b38ac98be /app/tree_model.h | |
parent | 824e9f50a3d588bb45bf9db02df5c3132ca817ad (diff) | |
download | chromium_src-01d5525529cfc2ce50833b4183a18581264ce6c0.zip chromium_src-01d5525529cfc2ce50833b4183a18581264ce6c0.tar.gz chromium_src-01d5525529cfc2ce50833b4183a18581264ce6c0.tar.bz2 |
Remove wstrings from bookmarks, part 9.
This actually converts TreeNodeModel::SetTitle(node, title); this is used by
bookmarks.
BUG=23581
TEST=builds nad passes tests
Review URL: http://codereview.chromium.org/3111024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/tree_model.h')
-rw-r--r-- | app/tree_model.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/tree_model.h b/app/tree_model.h index e191745..d2e37b1 100644 --- a/app/tree_model.h +++ b/app/tree_model.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// 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. @@ -10,6 +10,7 @@ #include <vector> #include "base/logging.h" +#include "base/string16.h" class SkBitmap; @@ -21,7 +22,9 @@ class TreeModel; class TreeModelNode { public: // Returns the title for the node. + // TODO(viettrungluu): remove wstring version and rename string16 version. virtual std::wstring GetTitle() const = 0; + virtual const string16& GetTitleAsString16() const = 0; protected: virtual ~TreeModelNode() {} @@ -79,7 +82,7 @@ class TreeModel { // Sets the title of the specified node. // This is only invoked if the node is editable and the user edits a node. virtual void SetTitle(TreeModelNode* node, - const std::wstring& title) { + const string16& title) { NOTREACHED(); } |