Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef 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 | |
| 8 | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "chrome/browser/chromeos/status/status_area_button.h" | |
| 11 | |
| 12 class StatusAreaView; | |
| 13 | |
| 14 namespace views { | |
| 15 class Widget; | |
| 16 } | |
| 17 | |
| 18 class StatusAreaHostAura : public StatusAreaButton::Delegate { | |
| 19 public: | |
| 20 StatusAreaHostAura(); | |
| 21 | |
| 22 // Instantiates and sets |status_area_view_|, and sets it as the contents of | |
| 23 // a new views::Widget |status_area_widget_| which is returned. | |
| 24 // The caller is expected to take ownership of |status_area_widget_|. | |
| 25 views::Widget* CreateStatusArea(); | |
| 26 | |
| 27 // StatusAreaButton::Delegate implementation. | |
| 28 virtual bool ShouldExecuteStatusAreaCommand( | |
| 29 const views::View* button_view, int command_id) const OVERRIDE; | |
| 30 | |
| 31 virtual void ExecuteStatusAreaCommand( | |
|
DaveMoore
2011/11/10 02:05:46
No blank lines between decls
stevenjb
2011/11/10 19:57:52
Done.
| |
| 32 const views::View* button_view, int command_id) OVERRIDE; | |
| 33 | |
| 34 virtual gfx::Font GetStatusAreaFont(const gfx::Font& font) const OVERRIDE; | |
| 35 | |
| 36 virtual StatusAreaButton::TextStyle GetStatusAreaTextStyle() const OVERRIDE; | |
| 37 | |
| 38 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE; | |
| 39 | |
| 40 private: | |
| 41 // Owned by caller of CreateStatusArea(). | |
| 42 views::Widget* status_area_widget_; | |
| 43 // Owned by status_area_widget_. | |
| 44 StatusAreaView* status_area_view_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura); | |
| 47 }; | |
| 48 | |
| 49 #endif // CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_ | |
| OLD | NEW |