| 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_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/chromeos/status/status_area_button.h" | 10 #include "chrome/browser/chromeos/status/status_area_button.h" |
| 11 | 11 |
| 12 #if defined(OS_CHROMEOS) | 12 #if defined(OS_CHROMEOS) |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/chromeos/login/login_html_dialog.h" | 14 #include "chrome/browser/chromeos/login/login_html_dialog.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 class StatusAreaView; | 17 class StatusAreaView; |
| 18 class TimezoneClockUpdater; | 18 class TimezoneClockUpdater; |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 class Views; | 21 class Views; |
| 22 class Widget; | 22 class Widget; |
| 23 } | 23 } |
| 24 | 24 |
| 25 class StatusAreaHostAura : public StatusAreaButton::Delegate { | 25 class StatusAreaHostAura : public StatusAreaButton::Delegate { |
| 26 public: | 26 public: |
| 27 StatusAreaHostAura(); | 27 StatusAreaHostAura(); |
| 28 virtual ~StatusAreaHostAura(); | 28 virtual ~StatusAreaHostAura(); |
| 29 | 29 |
| 30 // Returns the view housing the status area. Exposed for testing. | 30 // Returns the status area view. |
| 31 views::View* GetStatusAreaForTest(); | 31 StatusAreaView* GetStatusArea(); |
| 32 | 32 |
| 33 // Instantiates and sets |status_area_view_|, and sets it as the contents of | 33 // Instantiates and sets |status_area_view_|, and sets it as the contents of |
| 34 // a new views::Widget |status_area_widget_| which is returned. | 34 // a new views::Widget |status_area_widget_| which is returned. |
| 35 // The caller is expected to take ownership of |status_area_widget_|. | 35 // The caller is expected to take ownership of |status_area_widget_|. |
| 36 views::Widget* CreateStatusArea(); | 36 views::Widget* CreateStatusArea(); |
| 37 | 37 |
| 38 // StatusAreaButton::Delegate implementation. | 38 // StatusAreaButton::Delegate implementation. |
| 39 virtual bool ShouldExecuteStatusAreaCommand( | 39 virtual bool ShouldExecuteStatusAreaCommand( |
| 40 const views::View* button_view, int command_id) const OVERRIDE; | 40 const views::View* button_view, int command_id) const OVERRIDE; |
| 41 virtual void ExecuteStatusAreaCommand( | 41 virtual void ExecuteStatusAreaCommand( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 // Proxy settings dialog that can be invoked from network menu. | 54 // Proxy settings dialog that can be invoked from network menu. |
| 55 scoped_ptr<chromeos::LoginHtmlDialog> proxy_settings_dialog_; | 55 scoped_ptr<chromeos::LoginHtmlDialog> proxy_settings_dialog_; |
| 56 | 56 |
| 57 scoped_ptr<TimezoneClockUpdater> timezone_clock_updater_; | 57 scoped_ptr<TimezoneClockUpdater> timezone_clock_updater_; |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura); | 60 DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ | 63 #endif // CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ |
| OLD | NEW |