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

Unified Diff: views/controls/menu/menu_2.h

Issue 150171: Convert menu strings to UTF16, fix some views-GTK build errors. (Closed)
Patch Set: Created 11 years, 6 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 | « chrome/chrome.gyp ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_2.h
diff --git a/views/controls/menu/menu_2.h b/views/controls/menu/menu_2.h
index 665b8077d060fc7cea808fcd7e075d8f52f0d712..045309eb07b3dde75cc08464833822735f2f1c45 100644
--- a/views/controls/menu/menu_2.h
+++ b/views/controls/menu/menu_2.h
@@ -5,9 +5,8 @@
#ifndef CONTROLS_MENU_VIEWS_MENU_2_H_
#define CONTROLS_MENU_VIEWS_MENU_2_H_
-#include <string>
-
#include "base/gfx/native_widget_types.h"
+#include "base/string16.h"
namespace gfx {
class Point;
@@ -58,7 +57,7 @@ class Menu2Model {
virtual int GetCommandIdAt(int index) const = 0;
// Returns the label of the item at the specified index.
- virtual std::wstring GetLabelAt(int index) const = 0;
+ virtual string16 GetLabelAt(int index) const = 0;
// Returns true if the label at the specified index can change over the course
// of the menu's lifetime. If this function returns true, the label of the
« no previous file with comments | « chrome/chrome.gyp ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698