Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1450)

Unified Diff: app/tree_model.h

Issue 3111024: Remove wstrings from bookmarks, part 9. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | app/tree_node_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/tree_model.h
diff --git a/app/tree_model.h b/app/tree_model.h
index e191745d9f0fbdc24ef6edc8a318b30e56329ac2..d2e37b117f9eec6e4e24ef3415057afd85a099ad 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();
}
« no previous file with comments | « no previous file | app/tree_node_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698