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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 10829370: Make search icon in omnibox results hidpi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // an existing extension. 377 // an existing extension.
378 virtual void SyncExtensionChangeIfNeeded( 378 virtual void SyncExtensionChangeIfNeeded(
379 const extensions::Extension& extension) OVERRIDE; 379 const extensions::Extension& extension) OVERRIDE;
380 380
381 // Returns true if |url| should get extension api bindings and be permitted 381 // Returns true if |url| should get extension api bindings and be permitted
382 // to make api calls. Note that this is independent of what extension 382 // to make api calls. Note that this is independent of what extension
383 // permissions the given extension has been granted. 383 // permissions the given extension has been granted.
384 bool ExtensionBindingsAllowed(const GURL& url); 384 bool ExtensionBindingsAllowed(const GURL& url);
385 385
386 // Returns the icon to display in the omnibox for the given extension. 386 // Returns the icon to display in the omnibox for the given extension.
387 const SkBitmap& GetOmniboxIcon(const std::string& extension_id); 387 gfx::Image GetOmniboxIcon(const std::string& extension_id);
388 388
389 // Returns the icon to display in the omnibox popup window for the given 389 // Returns the icon to display in the omnibox popup window for the given
390 // extension. 390 // extension.
391 const SkBitmap& GetOmniboxPopupIcon(const std::string& extension_id); 391 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id);
392 392
393 // Called when the initial extensions load has completed. 393 // Called when the initial extensions load has completed.
394 virtual void OnLoadedInstalledExtensions(); 394 virtual void OnLoadedInstalledExtensions();
395 395
396 // Adds |extension| to this ExtensionService and notifies observers than an 396 // Adds |extension| to this ExtensionService and notifies observers than an
397 // extension has been loaded. Called by the backend after an extension has 397 // extension has been loaded. Called by the backend after an extension has
398 // been loaded from a file and installed. 398 // been loaded from a file and installed.
399 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; 399 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE;
400 400
401 // Called by the backend when an extension has been installed. 401 // Called by the backend when an extension has been installed.
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 #endif 868 #endif
869 869
870 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 870 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
871 InstallAppsWithUnlimtedStorage); 871 InstallAppsWithUnlimtedStorage);
872 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 872 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
873 InstallAppsAndCheckStorageProtection); 873 InstallAppsAndCheckStorageProtection);
874 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 874 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
875 }; 875 };
876 876
877 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 877 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698