| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 9 #include "chrome/browser/chromeos/dbus/power_manager_client.h" |
| 10 #include "chrome/browser/chromeos/status/status_area_button.h" | 10 #include "chrome/browser/chromeos/status/status_area_button.h" |
| 11 #include "views/controls/menu/menu_delegate.h" | 11 #include "views/controls/menu/menu_delegate.h" |
| 12 #include "views/controls/menu/view_menu_delegate.h" | 12 #include "views/controls/menu/view_menu_delegate.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class TimeDelta; | 15 class TimeDelta; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 class MenuRunner; | 19 class MenuRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 class SkBitmap; | |
| 23 | |
| 24 namespace chromeos { | 22 namespace chromeos { |
| 25 | 23 |
| 26 class StatusAreaBubbleContentView; | 24 class StatusAreaBubbleContentView; |
| 27 | 25 |
| 28 // The power menu button in the status area. | 26 // The power menu button in the status area. |
| 29 // This class will handle getting the power status and populating the menu. | 27 // This class will handle getting the power status and populating the menu. |
| 30 class PowerMenuButton : public StatusAreaButton, | 28 class PowerMenuButton : public StatusAreaButton, |
| 31 public views::MenuDelegate, | 29 public views::MenuDelegate, |
| 32 public views::ViewMenuDelegate, | 30 public views::ViewMenuDelegate, |
| 33 public PowerManagerClient::Observer { | 31 public PowerManagerClient::Observer { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 79 |
| 82 // If non-null the menu is showing. | 80 // If non-null the menu is showing. |
| 83 scoped_ptr<views::MenuRunner> menu_runner_; | 81 scoped_ptr<views::MenuRunner> menu_runner_; |
| 84 | 82 |
| 85 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); | 83 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 } // namespace chromeos | 86 } // namespace chromeos |
| 89 | 87 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ | 88 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ |
| OLD | NEW |