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

Side by Side Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_CHROME_SHELL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "ui/aura_shell/launcher/launcher_types.h" 12 #include "ui/aura_shell/launcher/launcher_types.h"
12 #include "ui/aura_shell/shell_delegate.h" 13 #include "ui/aura_shell/shell_delegate.h"
13 14
15 class StatusAreaHostAura;
14 class Browser; 16 class Browser;
15 17
16 class ChromeShellDelegate : public aura_shell::ShellDelegate { 18 class ChromeShellDelegate : public aura_shell::ShellDelegate {
17 public: 19 public:
18 ChromeShellDelegate(); 20 ChromeShellDelegate();
19 virtual ~ChromeShellDelegate(); 21 virtual ~ChromeShellDelegate();
20 22
21 // Returns whether a launcher item should be created for |browser|. If an item 23 // Returns whether a launcher item should be created for |browser|. If an item
22 // should be created |type| is set to the launcher type to create. 24 // should be created |type| is set to the launcher type to create.
23 static bool ShouldCreateLauncherItemForBrowser( 25 static bool ShouldCreateLauncherItemForBrowser(
24 Browser* browser, 26 Browser* browser,
25 aura_shell::LauncherItemType* type); 27 aura_shell::LauncherItemType* type);
26 28
27 // aura_shell::ShellDelegate overrides; 29 // aura_shell::ShellDelegate overrides;
28 virtual void CreateNewWindow() OVERRIDE; 30 virtual void CreateNewWindow() OVERRIDE;
31 virtual views::Widget* CreateStatusArea() OVERRIDE;
29 virtual void ShowApps() OVERRIDE; 32 virtual void ShowApps() OVERRIDE;
30 virtual void LauncherItemClicked( 33 virtual void LauncherItemClicked(
31 const aura_shell::LauncherItem& item) OVERRIDE; 34 const aura_shell::LauncherItem& item) OVERRIDE;
32 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE; 35 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE;
33 36
34 private: 37 private:
38 scoped_ptr<StatusAreaHostAura> status_area_host_;
39
35 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 40 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
36 }; 41 };
37 42
38 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ 43 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/status_area_view_chromeos.h ('k') | chrome/browser/ui/views/aura/chrome_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698