| 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_CLOCK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Updates text and schedules the timer to fire at the next minute interval. | 87 // Updates text and schedules the timer to fire at the next minute interval. |
| 88 void UpdateTextAndSetNextTimer(); | 88 void UpdateTextAndSetNextTimer(); |
| 89 | 89 |
| 90 base::OneShotTimer<ClockMenuButton> timer_; | 90 base::OneShotTimer<ClockMenuButton> timer_; |
| 91 | 91 |
| 92 // The clock menu. | 92 // The clock menu. |
| 93 // NOTE: we use a scoped_ptr here as menu calls into 'this' from the | 93 // NOTE: we use a scoped_ptr here as menu calls into 'this' from the |
| 94 // constructor. | 94 // constructor. |
| 95 scoped_ptr<views::Menu2> clock_menu_; | 95 scoped_ptr<views::Menu2> clock_menu_; |
| 96 | 96 |
| 97 StatusAreaHost* host_; | |
| 98 | |
| 99 PrefChangeRegistrar registrar_; | 97 PrefChangeRegistrar registrar_; |
| 100 | 98 |
| 101 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); | 99 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); |
| 102 }; | 100 }; |
| 103 | 101 |
| 104 } // namespace chromeos | 102 } // namespace chromeos |
| 105 | 103 |
| 106 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| OLD | NEW |