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

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

Issue 2830453002: [Merge M58] Fix randomly disappearing icons in app list recent view. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | chrome/browser/ui/app_list/search/extension_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_EXTENSION_APP_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_EXTENSION_APP_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_EXTENSION_APP_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_EXTENSION_APP_RESULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 private: 45 private:
46 void StartObservingExtensionRegistry(); 46 void StartObservingExtensionRegistry();
47 void StopObservingExtensionRegistry(); 47 void StopObservingExtensionRegistry();
48 48
49 // Checks if extension is disabled and if enable flow should be started. 49 // Checks if extension is disabled and if enable flow should be started.
50 // Returns true if extension enable flow is started or there is already one 50 // Returns true if extension enable flow is started or there is already one
51 // running. 51 // running.
52 bool RunExtensionEnableFlow(); 52 bool RunExtensionEnableFlow();
53 53
54 // Creates new icon in case icon does not exist or previous icon was
55 // invalidated.
56 void CreateOrUpdateIcon();
57
54 // Updates the app item's icon, if necessary making it gray. 58 // Updates the app item's icon, if necessary making it gray.
55 void UpdateIcon(); 59 void UpdateIcon();
56 60
57 // extensions::IconImage::Observer overrides: 61 // extensions::IconImage::Observer overrides:
58 void OnExtensionIconImageChanged(extensions::IconImage* image) override; 62 void OnExtensionIconImageChanged(extensions::IconImage* image) override;
59 void OnExtensionIconImageDestroyed(extensions::IconImage* image) override; 63 void OnExtensionIconImageDestroyed(extensions::IconImage* image) override;
60 64
61 // AppContextMenuDelegate overrides: 65 // AppContextMenuDelegate overrides:
62 void ExecuteLaunchCommand(int event_flags) override; 66 void ExecuteLaunchCommand(int event_flags) override;
63 67
(...skipping 12 matching lines...) Expand all
76 std::unique_ptr<ExtensionEnableFlow> extension_enable_flow_; 80 std::unique_ptr<ExtensionEnableFlow> extension_enable_flow_;
77 81
78 extensions::ExtensionRegistry* extension_registry_ = nullptr; 82 extensions::ExtensionRegistry* extension_registry_ = nullptr;
79 83
80 DISALLOW_COPY_AND_ASSIGN(ExtensionAppResult); 84 DISALLOW_COPY_AND_ASSIGN(ExtensionAppResult);
81 }; 85 };
82 86
83 } // namespace app_list 87 } // namespace app_list
84 88
85 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_EXTENSION_APP_RESULT_H_ 89 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_EXTENSION_APP_RESULT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/extension_app_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698