| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void OnIconUpdated(ArcAppIcon* icon) override; | 51 void OnIconUpdated(ArcAppIcon* icon) override; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 // Updates the app item's icon, if necessary making it gray. | 54 // Updates the app item's icon, if necessary making it gray. |
| 55 void UpdateIcon(); | 55 void UpdateIcon(); |
| 56 | 56 |
| 57 // Set the position from the ordering. | 57 // Set the position from the ordering. |
| 58 void UpdatePositionFromOrdering(); | 58 void UpdatePositionFromOrdering(); |
| 59 | 59 |
| 60 bool ready_; | 60 bool ready_; |
| 61 scoped_ptr<ArcAppIcon> arc_app_icon_; | 61 std::unique_ptr<ArcAppIcon> arc_app_icon_; |
| 62 scoped_ptr<ArcAppContextMenu> context_menu_; | 62 std::unique_ptr<ArcAppContextMenu> context_menu_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(ArcAppItem); | 64 DISALLOW_COPY_AND_ASSIGN(ArcAppItem); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ | 67 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ |
| OLD | NEW |