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

Side by Side Diff: chrome/browser/chromeos/status/network_menu_button.h

Issue 3923002: Revert 63135 - Update icons to show lowdata and very lowdata for 3G data.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/throb_animation.h" 9 #include "app/throb_animation.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public NetworkLibrary::Observer { 49 public NetworkLibrary::Observer {
50 public: 50 public:
51 explicit NetworkMenuButton(StatusAreaHost* host); 51 explicit NetworkMenuButton(StatusAreaHost* host);
52 virtual ~NetworkMenuButton(); 52 virtual ~NetworkMenuButton();
53 53
54 // AnimationDelegate implementation. 54 // AnimationDelegate implementation.
55 virtual void AnimationProgressed(const Animation* animation); 55 virtual void AnimationProgressed(const Animation* animation);
56 56
57 // NetworkLibrary::Observer implementation. 57 // NetworkLibrary::Observer implementation.
58 virtual void NetworkChanged(NetworkLibrary* obj); 58 virtual void NetworkChanged(NetworkLibrary* obj);
59 virtual void CellularDataPlanChanged(NetworkLibrary* obj);
60 59
61 // Sets the badge icon. 60 // Sets the badge icon.
62 void SetBadge(const SkBitmap& badge); 61 void SetBadge(const SkBitmap& badge);
63 SkBitmap badge() const { return badge_; } 62 SkBitmap badge() const { return badge_; }
64 63
65 protected: 64 protected:
66 // StatusAreaButton implementation. 65 // StatusAreaButton implementation.
67 virtual void DrawPressed(gfx::Canvas* canvas); 66 virtual void DrawPressed(gfx::Canvas* canvas);
68 virtual void DrawIcon(gfx::Canvas* canvas); 67 virtual void DrawIcon(gfx::Canvas* canvas);
69 68
(...skipping 15 matching lines...) Expand all
85 84
86 // The duration of the icon throbbing in milliseconds. 85 // The duration of the icon throbbing in milliseconds.
87 static const int kThrobDuration; 86 static const int kThrobDuration;
88 87
89 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); 88 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton);
90 }; 89 };
91 90
92 } // namespace chromeos 91 } // namespace chromeos
93 92
94 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
OLDNEW
« 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