| 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 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 MOCK_CONST_METHOD0(GetItemCount, int()); | 1554 MOCK_CONST_METHOD0(GetItemCount, int()); |
| 1555 MOCK_CONST_METHOD1(GetTypeAt, ItemType(int index)); | 1555 MOCK_CONST_METHOD1(GetTypeAt, ItemType(int index)); |
| 1556 MOCK_CONST_METHOD1(GetCommandIdAt, int(int index)); | 1556 MOCK_CONST_METHOD1(GetCommandIdAt, int(int index)); |
| 1557 MOCK_CONST_METHOD1(GetLabelAt, string16(int index)); | 1557 MOCK_CONST_METHOD1(GetLabelAt, string16(int index)); |
| 1558 MOCK_CONST_METHOD1(IsItemDynamicAt, bool(int index)); | 1558 MOCK_CONST_METHOD1(IsItemDynamicAt, bool(int index)); |
| 1559 MOCK_CONST_METHOD1(GetLabelFontAt, const gfx::Font* (int index)); | 1559 MOCK_CONST_METHOD1(GetLabelFontAt, const gfx::Font* (int index)); |
| 1560 MOCK_CONST_METHOD2(GetAcceleratorAt, bool(int index, | 1560 MOCK_CONST_METHOD2(GetAcceleratorAt, bool(int index, |
| 1561 ui::Accelerator* accelerator)); | 1561 ui::Accelerator* accelerator)); |
| 1562 MOCK_CONST_METHOD1(IsItemCheckedAt, bool(int index)); | 1562 MOCK_CONST_METHOD1(IsItemCheckedAt, bool(int index)); |
| 1563 MOCK_CONST_METHOD1(GetGroupIdAt, int(int index)); | 1563 MOCK_CONST_METHOD1(GetGroupIdAt, int(int index)); |
| 1564 MOCK_METHOD2(GetIconAt, bool(int index, gfx::ImageSkia* icon)); | 1564 MOCK_METHOD2(GetIconAt, bool(int index, gfx::Image* icon)); |
| 1565 MOCK_CONST_METHOD1(GetButtonMenuItemAt, ui::ButtonMenuItemModel*(int index)); | 1565 MOCK_CONST_METHOD1(GetButtonMenuItemAt, ui::ButtonMenuItemModel*(int index)); |
| 1566 MOCK_CONST_METHOD1(IsEnabledAt, bool(int index)); | 1566 MOCK_CONST_METHOD1(IsEnabledAt, bool(int index)); |
| 1567 MOCK_CONST_METHOD1(IsVisibleAt, bool(int index)); | 1567 MOCK_CONST_METHOD1(IsVisibleAt, bool(int index)); |
| 1568 MOCK_CONST_METHOD1(GetSubmenuModelAt, MenuModel*(int index)); | 1568 MOCK_CONST_METHOD1(GetSubmenuModelAt, MenuModel*(int index)); |
| 1569 MOCK_METHOD1(HighlightChangedTo, void(int index)); | 1569 MOCK_METHOD1(HighlightChangedTo, void(int index)); |
| 1570 MOCK_METHOD1(ActivatedAt, void(int index)); | 1570 MOCK_METHOD1(ActivatedAt, void(int index)); |
| 1571 MOCK_METHOD2(ActivatedAt, void(int index, int disposition)); | 1571 MOCK_METHOD2(ActivatedAt, void(int index, int disposition)); |
| 1572 MOCK_METHOD0(MenuWillShow, void()); | 1572 MOCK_METHOD0(MenuWillShow, void()); |
| 1573 MOCK_METHOD0(MenuClosed, void()); | 1573 MOCK_METHOD0(MenuClosed, void()); |
| 1574 MOCK_METHOD1(SetMenuModelDelegate, void(ui::MenuModelDelegate* delegate)); | 1574 MOCK_METHOD1(SetMenuModelDelegate, void(ui::MenuModelDelegate* delegate)); |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3381 // Set to non default value. | 3381 // Set to non default value. |
| 3382 v->layer()->set_scale_content(false); | 3382 v->layer()->set_scale_content(false); |
| 3383 scoped_ptr<ui::Layer> old_layer(v->RecreateLayer()); | 3383 scoped_ptr<ui::Layer> old_layer(v->RecreateLayer()); |
| 3384 ui::Layer* new_layer = v->layer(); | 3384 ui::Layer* new_layer = v->layer(); |
| 3385 EXPECT_FALSE(new_layer->scale_content()); | 3385 EXPECT_FALSE(new_layer->scale_content()); |
| 3386 } | 3386 } |
| 3387 | 3387 |
| 3388 #endif // USE_AURA | 3388 #endif // USE_AURA |
| 3389 | 3389 |
| 3390 } // namespace views | 3390 } // namespace views |
| OLD | NEW |