Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7508)

Unified Diff: chrome/browser/ui/views/aura/status_area_host_aura.h

Issue 8509027: Add status area to Aura builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move status area view ids back to chromeos Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/ui/views/aura/chrome_shell_delegate.cc ('k') | chrome/browser/ui/views/aura/status_area_host_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698