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

Unified Diff: chrome/browser/chromeos/status/network_menu.cc

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review Created 8 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
Index: chrome/browser/chromeos/status/network_menu.cc
diff --git a/chrome/browser/chromeos/status/network_menu.cc b/chrome/browser/chromeos/status/network_menu.cc
index 6a82b514f5431d3d2c48ade58fdc32479d4dba14..ab3a369344a6455440762cd1c68769c360bfaccf 100644
--- a/chrome/browser/chromeos/status/network_menu.cc
+++ b/chrome/browser/chromeos/status/network_menu.cc
@@ -146,6 +146,7 @@ class NetworkMenuModel : public ui::MenuModel {
virtual bool HasIcons() const OVERRIDE;
virtual int GetItemCount() const OVERRIDE;
virtual ui::MenuModel::ItemType GetTypeAt(int index) const OVERRIDE;
+ virtual ui::MenuSeparatorStyle GetSeparatorStyleAt(int index) const OVERRIDE;
virtual string16 GetLabelAt(int index) const OVERRIDE;
virtual bool IsItemDynamicAt(int index) const OVERRIDE;
virtual const gfx::Font* GetLabelFontAt(int index) const OVERRIDE;
@@ -343,6 +344,11 @@ ui::MenuModel::ItemType NetworkMenuModel::GetTypeAt(int index) const {
return menu_items_[index].type;
}
+ui::MenuSeparatorStyle NetworkMenuModel::GetSeparatorStyleAt(int index) const {
+ return menu_items_[index].type == ui::MenuModel::TYPE_SEPARATOR ?
+ ui::NORMAL_SEPARATOR : ui::NO_SEPARATOR;
+}
+
string16 NetworkMenuModel::GetLabelAt(int index) const {
return menu_items_[index].label;
}

Powered by Google App Engine
This is Rietveld 408576698