| Index: chrome/browser/ui/views/aura/status_area_host_aura.h
|
| diff --git a/chrome/browser/ui/views/aura/status_area_host_aura.h b/chrome/browser/ui/views/aura/status_area_host_aura.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..20700be045d128421a119f27a9ef8ebe20522939
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/aura/status_area_host_aura.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_
|
| +#pragma once
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/browser/chromeos/status/status_area_button.h"
|
| +
|
| +class StatusAreaView;
|
| +
|
| +namespace views {
|
| +class Widget;
|
| +}
|
| +
|
| +class StatusAreaHostAura : public StatusAreaButton::Delegate {
|
| + public:
|
| + StatusAreaHostAura();
|
| +
|
| + // Instantiates and sets |status_area_view_|, and sets it as the contents of
|
| + // a new views::Widget |status_area_widget_| which is returned.
|
| + // The caller is expected to take ownership of |status_area_widget_|.
|
| + views::Widget* CreateStatusArea();
|
| +
|
| + // StatusAreaButton::Delegate implementation.
|
| + virtual bool ShouldExecuteStatusAreaCommand(
|
| + const views::View* button_view, int command_id) const OVERRIDE;
|
| + virtual void ExecuteStatusAreaCommand(
|
| + const views::View* button_view, int command_id) OVERRIDE;
|
| + virtual gfx::Font GetStatusAreaFont(const gfx::Font& font) const OVERRIDE;
|
| + virtual StatusAreaButton::TextStyle GetStatusAreaTextStyle() const OVERRIDE;
|
| + virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE;
|
| +
|
| + private:
|
| + // Owned by caller of CreateStatusArea().
|
| + views::Widget* status_area_widget_;
|
| + // Owned by status_area_widget_.
|
| + StatusAreaView* status_area_view_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_AURA_STATUS_AREA_HOST_AURA_H_
|
|
|