Lines Matching defs:context_menu
676 StatusIconMenuModel* context_menu = manager->context_menu_;
677 EXPECT_TRUE(context_menu != NULL);
680 EXPECT_TRUE(context_menu->GetLabelAt(3) == base::UTF8ToUTF16("p1"));
682 context_menu->IsCommandIdEnabled(context_menu->GetCommandIdAt(3)));
683 EXPECT_TRUE(context_menu->GetCommandIdAt(3) == 4);
685 EXPECT_TRUE(context_menu->GetLabelAt(4) == base::UTF8ToUTF16("p2"));
687 context_menu->IsCommandIdEnabled(context_menu->GetCommandIdAt(4)));
688 EXPECT_TRUE(context_menu->GetCommandIdAt(4) == 8);
692 static_cast<StatusIconMenuModel*>(context_menu->GetSubmenuModelAt(3));
724 static_cast<StatusIconMenuModel*>(context_menu->GetSubmenuModelAt(4));
754 EXPECT_FALSE(IsCommandEnabled(context_menu, 0)); // P1 - CE
755 EXPECT_TRUE(IsCommandEnabled(context_menu, 1)); // P1 - CEO
756 EXPECT_TRUE(IsCommandEnabled(context_menu, 2)); // P1 - RE
757 EXPECT_TRUE(IsCommandEnabled(context_menu, 3)); // P1 - REO
758 EXPECT_TRUE(IsCommandEnabled(context_menu, 4)); // P1
759 EXPECT_FALSE(IsCommandEnabled(context_menu, 5)); // P2 - CE
760 EXPECT_TRUE(IsCommandEnabled(context_menu, 6)); // P2 - RE
761 EXPECT_TRUE(IsCommandEnabled(context_menu, 7)); // P2 - REO
762 EXPECT_TRUE(IsCommandEnabled(context_menu, 8)); // P2