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

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

Issue 1349005: Fix compiler warnings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | views/controls/slider/slider.h » ('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 (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_POWER_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
7 7
8 #include "app/menus/menu_model.h" 8 #include "app/menus/menu_model.h"
9 #include "chrome/browser/chromeos/cros/power_library.h" 9 #include "chrome/browser/chromeos/cros/power_library.h"
10 #include "chrome/browser/chromeos/status/status_area_button.h" 10 #include "chrome/browser/chromeos/status/status_area_button.h"
(...skipping 28 matching lines...) Expand all
39 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } 39 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; }
40 virtual bool IsEnabledAt(int index) const { return false; } 40 virtual bool IsEnabledAt(int index) const { return false; }
41 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 41 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
42 virtual void HighlightChangedTo(int index) {} 42 virtual void HighlightChangedTo(int index) {}
43 virtual void ActivatedAt(int index) {} 43 virtual void ActivatedAt(int index) {}
44 virtual void MenuWillShow() {} 44 virtual void MenuWillShow() {}
45 45
46 // PowerLibrary::Observer implementation. 46 // PowerLibrary::Observer implementation.
47 virtual void PowerChanged(PowerLibrary* obj); 47 virtual void PowerChanged(PowerLibrary* obj);
48 48
49 const int icon_id() const { return icon_id_; } 49 int icon_id() const { return icon_id_; }
50 50
51 protected: 51 protected:
52 // StatusAreaButton implementation. 52 // StatusAreaButton implementation.
53 virtual void DrawPressed(gfx::Canvas* canvas); 53 virtual void DrawPressed(gfx::Canvas* canvas);
54 virtual void DrawIcon(gfx::Canvas* canvas); 54 virtual void DrawIcon(gfx::Canvas* canvas);
55 55
56 private: 56 private:
57 // views::ViewMenuDelegate implementation. 57 // views::ViewMenuDelegate implementation.
58 virtual void RunMenu(views::View* source, const gfx::Point& pt); 58 virtual void RunMenu(views::View* source, const gfx::Point& pt);
59 59
(...skipping 11 matching lines...) Expand all
71 71
72 // The currently showing icon bitmap id. 72 // The currently showing icon bitmap id.
73 int icon_id_; 73 int icon_id_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); 75 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton);
76 }; 76 };
77 77
78 } // namespace chromeos 78 } // namespace chromeos
79 79
80 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 80 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | views/controls/slider/slider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698