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

Side by Side Diff: chrome/browser/ui/views/menu_model_adapter_test.cc

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/callback.h" 5 #include "base/callback.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/test/base/ui_test_utils.h" 7 #include "chrome/test/base/ui_test_utils.h"
8 #include "chrome/test/base/view_event_test_base.h" 8 #include "chrome/test/base/view_event_test_base.h"
9 #include "ui/base/models/menu_model.h" 9 #include "ui/base/models/menu_model.h"
10 #include "ui/ui_controls/ui_controls.h" 10 #include "ui/ui_controls/ui_controls.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 virtual bool IsItemCheckedAt(int index) const OVERRIDE { 138 virtual bool IsItemCheckedAt(int index) const OVERRIDE {
139 return false; 139 return false;
140 } 140 }
141 141
142 virtual int GetGroupIdAt(int index) const OVERRIDE { 142 virtual int GetGroupIdAt(int index) const OVERRIDE {
143 return 0; 143 return 0;
144 } 144 }
145 145
146 virtual bool GetIconAt(int index, SkBitmap* icon) OVERRIDE { 146 virtual bool GetIconAt(int index, gfx::ImageSkia* icon) OVERRIDE {
147 return false; 147 return false;
148 } 148 }
149 149
150 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt( 150 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(
151 int index) const OVERRIDE { 151 int index) const OVERRIDE {
152 return NULL; 152 return NULL;
153 } 153 }
154 154
155 virtual bool IsEnabledAt(int index) const OVERRIDE { 155 virtual bool IsEnabledAt(int index) const OVERRIDE {
156 return true; 156 return true;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 views::MenuItemView* menu_; 388 views::MenuItemView* menu_;
389 scoped_ptr<views::MenuRunner> menu_runner_; 389 scoped_ptr<views::MenuRunner> menu_runner_;
390 }; 390 };
391 391
392 #if defined(OS_WIN) 392 #if defined(OS_WIN)
393 #define MAYBE_RebuildMenu DISABLED_RebuildMenu 393 #define MAYBE_RebuildMenu DISABLED_RebuildMenu
394 #else 394 #else
395 #define MAYBE_RebuildMenu RebuildMenu 395 #define MAYBE_RebuildMenu RebuildMenu
396 #endif 396 #endif
397 VIEW_TEST(MenuModelAdapterTest, MAYBE_RebuildMenu) 397 VIEW_TEST(MenuModelAdapterTest, MAYBE_RebuildMenu)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698