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

Unified Diff: chrome/browser/chromeos/status/network_menu_button.h

Issue 6591017: Cache network connecting bitmaps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/network_menu_button.h
===================================================================
--- chrome/browser/chromeos/status/network_menu_button.h (revision 76240)
+++ chrome/browser/chromeos/status/network_menu_button.h (working copy)
@@ -74,11 +74,11 @@
private:
// Sets the icon and the badge.
- void SetIconAndBadge(const SkBitmap& icon, const SkBitmap& badge);
+ void SetIconAndBadge(const SkBitmap* icon, const SkBitmap* badge);
// Sets the icon only. Keep the previous badge.
- void SetIconOnly(const SkBitmap& icon);
+ void SetIconOnly(const SkBitmap* icon);
// Sets the badge only. Keep the previous icon.
- void SetBadgeOnly(const SkBitmap& badge);
+ void SetBadgeOnly(const SkBitmap* badge);
// Set the network icon based on the status of the |network|
void SetNetworkIcon(NetworkLibrary* cros, const Network* network);
@@ -90,9 +90,9 @@
StatusAreaHost* host_;
// The icon showing the network strength.
- SkBitmap icon_;
+ const SkBitmap* icon_;
// A badge icon displayed on top of the icon.
- SkBitmap badge_;
+ const SkBitmap* badge_;
// The throb animation that does the wifi connecting animation.
ui::ThrobAnimation animation_connecting_;
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.cc ('k') | chrome/browser/chromeos/status/network_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698