Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: chrome/browser/ui/app_list/search/app_result.h

Issue 2253253002: [Merge to M53][Chrome OS] Change layout of the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h" 12 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h"
13 #include "ui/app_list/search_result.h" 13 #include "ui/app_list/search_result.h"
14 14
15 class AppListControllerDelegate; 15 class AppListControllerDelegate;
16 class Profile; 16 class Profile;
17 17
18 namespace base { 18 namespace base {
19 class Time; 19 class Time;
20 } 20 }
21 namespace app_list { 21 namespace app_list {
22 22
23 class AppResult : public SearchResult, 23 class AppResult : public SearchResult,
24 public AppContextMenuDelegate { 24 public AppContextMenuDelegate {
25 public: 25 public:
26 ~AppResult() override; 26 ~AppResult() override;
27 27
28 void UpdateFromLastLaunched(const base::Time& current_time, 28 void UpdateFromLastLaunchedOrInstalledTime(const base::Time& current_time,
29 const base::Time& last_launched); 29 const base::Time& old_time);
30
30 protected: 31 protected:
31 AppResult(Profile* profile, 32 AppResult(Profile* profile,
32 const std::string& app_id, 33 const std::string& app_id,
33 AppListControllerDelegate* controller, 34 AppListControllerDelegate* controller,
34 bool is_recommendation); 35 bool is_recommendation);
35 36
36 // Marked const in order to be able to use in derived class in const methods. 37 // Marked const in order to be able to use in derived class in const methods.
37 Profile* profile() const { 38 Profile* profile() const {
38 return profile_; 39 return profile_;
39 } 40 }
(...skipping 11 matching lines...) Expand all
51 Profile* profile_; 52 Profile* profile_;
52 const std::string app_id_; 53 const std::string app_id_;
53 AppListControllerDelegate* controller_; 54 AppListControllerDelegate* controller_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(AppResult); 56 DISALLOW_COPY_AND_ASSIGN(AppResult);
56 }; 57 };
57 58
58 } // namespace app_list 59 } // namespace app_list
59 60
60 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ 61 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('k') | chrome/browser/ui/app_list/search/app_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698