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

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

Issue 898273002: app_list::SearchResult: Duplicate() is const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 5 years, 10 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
« no previous file with comments | « ash/shell/app_list.cc ('k') | chrome/browser/ui/app_list/search/app_result.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ~AppResult() override; 45 ~AppResult() override;
46 46
47 void UpdateFromMatch(const TokenizedString& title, 47 void UpdateFromMatch(const TokenizedString& title,
48 const TokenizedStringMatch& match); 48 const TokenizedStringMatch& match);
49 49
50 void UpdateFromLastLaunched(const base::Time& current_time, 50 void UpdateFromLastLaunched(const base::Time& current_time,
51 const base::Time& last_launched); 51 const base::Time& last_launched);
52 52
53 // SearchResult overrides: 53 // SearchResult overrides:
54 void Open(int event_flags) override; 54 void Open(int event_flags) override;
55 scoped_ptr<SearchResult> Duplicate() override; 55 scoped_ptr<SearchResult> Duplicate() const override;
56 ui::MenuModel* GetContextMenuModel() override; 56 ui::MenuModel* GetContextMenuModel() override;
57 57
58 private: 58 private:
59 void StartObservingExtensionRegistry(); 59 void StartObservingExtensionRegistry();
60 void StopObservingExtensionRegistry(); 60 void StopObservingExtensionRegistry();
61 61
62 // Checks if extension is disabled and if enable flow should be started. 62 // Checks if extension is disabled and if enable flow should be started.
63 // Returns true if extension enable flow is started or there is already one 63 // Returns true if extension enable flow is started or there is already one
64 // running. 64 // running.
65 bool RunExtensionEnableFlow(); 65 bool RunExtensionEnableFlow();
(...skipping 26 matching lines...) Expand all
92 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; 92 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_;
93 93
94 extensions::ExtensionRegistry* extension_registry_; 94 extensions::ExtensionRegistry* extension_registry_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(AppResult); 96 DISALLOW_COPY_AND_ASSIGN(AppResult);
97 }; 97 };
98 98
99 } // namespace app_list 99 } // namespace app_list
100 100
101 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ 101 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_
OLDNEW
« no previous file with comments | « ash/shell/app_list.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