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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 AppListControllerDelegate* controller); 43 AppListControllerDelegate* controller);
44 virtual ~AppResult(); 44 virtual ~AppResult();
45 45
46 void UpdateFromMatch(const TokenizedString& title, 46 void UpdateFromMatch(const TokenizedString& title,
47 const TokenizedStringMatch& match); 47 const TokenizedStringMatch& match);
48 48
49 void UpdateFromLastLaunched(const base::Time& current_time, 49 void UpdateFromLastLaunched(const base::Time& current_time,
50 const base::Time& last_launched); 50 const base::Time& last_launched);
51 51
52 // ChromeSearchResult overides: 52 // ChromeSearchResult overides:
53 virtual void Open(int event_flags) OVERRIDE; 53 virtual void Open(int event_flags) override;
54 virtual void InvokeAction(int action_index, int event_flags) OVERRIDE; 54 virtual void InvokeAction(int action_index, int event_flags) override;
55 virtual scoped_ptr<ChromeSearchResult> Duplicate() OVERRIDE; 55 virtual scoped_ptr<ChromeSearchResult> Duplicate() override;
56 virtual ui::MenuModel* GetContextMenuModel() OVERRIDE; 56 virtual ui::MenuModel* GetContextMenuModel() override;
57 virtual ChromeSearchResultType GetType() OVERRIDE; 57 virtual ChromeSearchResultType GetType() override;
58 58
59 private: 59 private:
60 void StartObservingExtensionRegistry(); 60 void StartObservingExtensionRegistry();
61 void StopObservingExtensionRegistry(); 61 void StopObservingExtensionRegistry();
62 62
63 // Checks if extension is disabled and if enable flow should be started. 63 // Checks if extension is disabled and if enable flow should be started.
64 // Returns true if extension enable flow is started or there is already one 64 // Returns true if extension enable flow is started or there is already one
65 // running. 65 // running.
66 bool RunExtensionEnableFlow(); 66 bool RunExtensionEnableFlow();
67 67
68 // Updates the app item's icon, if necessary making it gray. 68 // Updates the app item's icon, if necessary making it gray.
69 void UpdateIcon(); 69 void UpdateIcon();
70 70
71 // extensions::IconImage::Observer overrides: 71 // extensions::IconImage::Observer overrides:
72 virtual void OnExtensionIconImageChanged( 72 virtual void OnExtensionIconImageChanged(
73 extensions::IconImage* image) OVERRIDE; 73 extensions::IconImage* image) override;
74 74
75 // AppContextMenuDelegate overrides: 75 // AppContextMenuDelegate overrides:
76 virtual void ExecuteLaunchCommand(int event_flags) OVERRIDE; 76 virtual void ExecuteLaunchCommand(int event_flags) override;
77 77
78 // ExtensionEnableFlowDelegate overrides: 78 // ExtensionEnableFlowDelegate overrides:
79 virtual void ExtensionEnableFlowFinished() OVERRIDE; 79 virtual void ExtensionEnableFlowFinished() override;
80 virtual void ExtensionEnableFlowAborted(bool user_initiated) OVERRIDE; 80 virtual void ExtensionEnableFlowAborted(bool user_initiated) override;
81 81
82 // extensions::ExtensionRegistryObserver override: 82 // extensions::ExtensionRegistryObserver override:
83 virtual void OnExtensionLoaded( 83 virtual void OnExtensionLoaded(
84 content::BrowserContext* browser_context, 84 content::BrowserContext* browser_context,
85 const extensions::Extension* extension) OVERRIDE; 85 const extensions::Extension* extension) override;
86 virtual void OnExtensionUninstalled( 86 virtual void OnExtensionUninstalled(
87 content::BrowserContext* browser_context, 87 content::BrowserContext* browser_context,
88 const extensions::Extension* extension, 88 const extensions::Extension* extension,
89 extensions::UninstallReason reason) OVERRIDE; 89 extensions::UninstallReason reason) override;
90 virtual void OnShutdown(extensions::ExtensionRegistry* registry) OVERRIDE; 90 virtual void OnShutdown(extensions::ExtensionRegistry* registry) override;
91 91
92 Profile* profile_; 92 Profile* profile_;
93 const std::string app_id_; 93 const std::string app_id_;
94 AppListControllerDelegate* controller_; 94 AppListControllerDelegate* controller_;
95 95
96 bool is_platform_app_; 96 bool is_platform_app_;
97 scoped_ptr<extensions::IconImage> icon_; 97 scoped_ptr<extensions::IconImage> icon_;
98 scoped_ptr<AppContextMenu> context_menu_; 98 scoped_ptr<AppContextMenu> context_menu_;
99 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; 99 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_;
100 100
101 extensions::ExtensionRegistry* extension_registry_; 101 extensions::ExtensionRegistry* extension_registry_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(AppResult); 103 DISALLOW_COPY_AND_ASSIGN(AppResult);
104 }; 104 };
105 105
106 } // namespace app_list 106 } // namespace app_list
107 107
108 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_ 108 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/recommended_apps.h ('k') | chrome/browser/ui/app_list/search/app_search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698