| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXTENSION_APP_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "chrome/browser/ui/app_list/app_context_menu.h" | 12 #include "chrome/browser/ui/app_list/app_context_menu.h" |
| 13 | 13 |
| 14 class AppListControllerDelegate; | 14 class AppListControllerDelegate; |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 class ContextMenuMatcher; | 18 class ContextMenuMatcher; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace app_list { | 21 namespace app_list { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 43 bool IsCommandIdEnabled(int command_id) const override; | 43 bool IsCommandIdEnabled(int command_id) const override; |
| 44 void ExecuteCommand(int command_id, int event_flags) override; | 44 void ExecuteCommand(int command_id, int event_flags) override; |
| 45 | 45 |
| 46 void set_is_platform_app(bool is_platform_app) { | 46 void set_is_platform_app(bool is_platform_app) { |
| 47 is_platform_app_ = is_platform_app; | 47 is_platform_app_ = is_platform_app; |
| 48 } | 48 } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 bool is_platform_app_ = false; | 51 bool is_platform_app_ = false; |
| 52 | 52 |
| 53 scoped_ptr<extensions::ContextMenuMatcher> extension_menu_items_; | 53 std::unique_ptr<extensions::ContextMenuMatcher> extension_menu_items_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ExtensionAppContextMenu); | 55 DISALLOW_COPY_AND_ASSIGN(ExtensionAppContextMenu); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace app_list | 58 } // namespace app_list |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ | 60 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ |
| OLD | NEW |