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

Side by Side 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: Rebase 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698