OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SEARCH_APP_RESULT_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 class TokenizedStringMatch; | 33 class TokenizedStringMatch; |
34 | 34 |
35 class AppResult : public SearchResult, | 35 class AppResult : public SearchResult, |
36 public extensions::IconImage::Observer, | 36 public extensions::IconImage::Observer, |
37 public AppContextMenuDelegate, | 37 public AppContextMenuDelegate, |
38 public ExtensionEnableFlowDelegate, | 38 public ExtensionEnableFlowDelegate, |
39 public extensions::ExtensionRegistryObserver { | 39 public extensions::ExtensionRegistryObserver { |
40 public: | 40 public: |
41 AppResult(Profile* profile, | 41 AppResult(Profile* profile, |
42 const std::string& app_id, | 42 const std::string& app_id, |
43 AppListControllerDelegate* controller); | 43 AppListControllerDelegate* controller, |
| 44 bool is_recommendation); |
44 ~AppResult() override; | 45 ~AppResult() override; |
45 | 46 |
46 void UpdateFromMatch(const TokenizedString& title, | 47 void UpdateFromMatch(const TokenizedString& title, |
47 const TokenizedStringMatch& match); | 48 const TokenizedStringMatch& match); |
48 | 49 |
49 void UpdateFromLastLaunched(const base::Time& current_time, | 50 void UpdateFromLastLaunched(const base::Time& current_time, |
50 const base::Time& last_launched); | 51 const base::Time& last_launched); |
51 | 52 |
52 // SearchResult overrides: | 53 // SearchResult overrides: |
53 void Open(int event_flags) override; | 54 void Open(int event_flags) override; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; | 92 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; |
92 | 93 |
93 extensions::ExtensionRegistry* extension_registry_; | 94 extensions::ExtensionRegistry* extension_registry_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(AppResult); | 96 DISALLOW_COPY_AND_ASSIGN(AppResult); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace app_list | 99 } // namespace app_list |
99 | 100 |
100 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ | 101 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ |
OLD | NEW |