| OLD | NEW |
| 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 <map> | 5 #include <map> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 MOCK_CONST_METHOD0(GetItemCount, int()); | 1360 MOCK_CONST_METHOD0(GetItemCount, int()); |
| 1361 MOCK_CONST_METHOD1(GetTypeAt, ItemType(int index)); | 1361 MOCK_CONST_METHOD1(GetTypeAt, ItemType(int index)); |
| 1362 MOCK_CONST_METHOD1(GetCommandIdAt, int(int index)); | 1362 MOCK_CONST_METHOD1(GetCommandIdAt, int(int index)); |
| 1363 MOCK_CONST_METHOD1(GetLabelAt, string16(int index)); | 1363 MOCK_CONST_METHOD1(GetLabelAt, string16(int index)); |
| 1364 MOCK_CONST_METHOD1(IsItemDynamicAt, bool(int index)); | 1364 MOCK_CONST_METHOD1(IsItemDynamicAt, bool(int index)); |
| 1365 MOCK_CONST_METHOD1(GetLabelFontAt, const gfx::Font* (int index)); | 1365 MOCK_CONST_METHOD1(GetLabelFontAt, const gfx::Font* (int index)); |
| 1366 MOCK_CONST_METHOD2(GetAcceleratorAt, bool(int index, | 1366 MOCK_CONST_METHOD2(GetAcceleratorAt, bool(int index, |
| 1367 ui::Accelerator* accelerator)); | 1367 ui::Accelerator* accelerator)); |
| 1368 MOCK_CONST_METHOD1(IsItemCheckedAt, bool(int index)); | 1368 MOCK_CONST_METHOD1(IsItemCheckedAt, bool(int index)); |
| 1369 MOCK_CONST_METHOD1(GetGroupIdAt, int(int index)); | 1369 MOCK_CONST_METHOD1(GetGroupIdAt, int(int index)); |
| 1370 MOCK_METHOD2(GetIconAt, bool(int index, SkBitmap* icon)); | 1370 MOCK_METHOD2(GetIconAt, bool(int index, gfx::ImageSkia* icon)); |
| 1371 MOCK_CONST_METHOD1(GetButtonMenuItemAt, ui::ButtonMenuItemModel*(int index)); | 1371 MOCK_CONST_METHOD1(GetButtonMenuItemAt, ui::ButtonMenuItemModel*(int index)); |
| 1372 MOCK_CONST_METHOD1(IsEnabledAt, bool(int index)); | 1372 MOCK_CONST_METHOD1(IsEnabledAt, bool(int index)); |
| 1373 MOCK_CONST_METHOD1(IsVisibleAt, bool(int index)); | 1373 MOCK_CONST_METHOD1(IsVisibleAt, bool(int index)); |
| 1374 MOCK_CONST_METHOD1(GetSubmenuModelAt, MenuModel*(int index)); | 1374 MOCK_CONST_METHOD1(GetSubmenuModelAt, MenuModel*(int index)); |
| 1375 MOCK_METHOD1(HighlightChangedTo, void(int index)); | 1375 MOCK_METHOD1(HighlightChangedTo, void(int index)); |
| 1376 MOCK_METHOD1(ActivatedAt, void(int index)); | 1376 MOCK_METHOD1(ActivatedAt, void(int index)); |
| 1377 MOCK_METHOD2(ActivatedAt, void(int index, int disposition)); | 1377 MOCK_METHOD2(ActivatedAt, void(int index, int disposition)); |
| 1378 MOCK_METHOD0(MenuWillShow, void()); | 1378 MOCK_METHOD0(MenuWillShow, void()); |
| 1379 MOCK_METHOD0(MenuClosed, void()); | 1379 MOCK_METHOD0(MenuClosed, void()); |
| 1380 MOCK_METHOD1(SetMenuModelDelegate, void(ui::MenuModelDelegate* delegate)); | 1380 MOCK_METHOD1(SetMenuModelDelegate, void(ui::MenuModelDelegate* delegate)); |
| (...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3172 scoped_ptr<ui::Layer> layer(c1->AcquireLayer()); | 3172 scoped_ptr<ui::Layer> layer(c1->AcquireLayer()); |
| 3173 EXPECT_EQ(layer.get(), c1->layer()); | 3173 EXPECT_EQ(layer.get(), c1->layer()); |
| 3174 | 3174 |
| 3175 layer.reset(c1->RecreateLayer()); | 3175 layer.reset(c1->RecreateLayer()); |
| 3176 EXPECT_NE(c1->layer(), layer.get()); | 3176 EXPECT_NE(c1->layer(), layer.get()); |
| 3177 } | 3177 } |
| 3178 | 3178 |
| 3179 #endif // USE_AURA | 3179 #endif // USE_AURA |
| 3180 | 3180 |
| 3181 } // namespace views | 3181 } // namespace views |
| OLD | NEW |