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

Side by Side Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.h

Issue 8688003: [cros, Aura] Change status area visibility during OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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"
(...skipping 10 matching lines...) Expand all
21 21
22 class ChromeShellDelegate : public aura_shell::ShellDelegate { 22 class ChromeShellDelegate : public aura_shell::ShellDelegate {
23 public: 23 public:
24 ChromeShellDelegate(); 24 ChromeShellDelegate();
25 virtual ~ChromeShellDelegate(); 25 virtual ~ChromeShellDelegate();
26 26
27 static ChromeShellDelegate* instance() { return instance_; } 27 static ChromeShellDelegate* instance() { return instance_; }
28 28
29 views::View* GetStatusAreaForTest(); 29 views::View* GetStatusAreaForTest();
30 30
31 StatusAreaHostAura* status_area_host() { return status_area_host_.get(); }
sky 2011/11/30 17:47:50 I believe this ends up exposing the same thing as
Nikita (slow) 2011/12/01 09:15:08 Done.
32
31 // Returns whether a launcher item should be created for |browser|. If an item 33 // Returns whether a launcher item should be created for |browser|. If an item
32 // should be created |type| is set to the launcher type to create. 34 // should be created |type| is set to the launcher type to create.
33 static bool ShouldCreateLauncherItemForBrowser( 35 static bool ShouldCreateLauncherItemForBrowser(
34 Browser* browser, 36 Browser* browser,
35 aura_shell::LauncherItemType* type); 37 aura_shell::LauncherItemType* type);
36 38
37 // aura_shell::ShellDelegate overrides; 39 // aura_shell::ShellDelegate overrides;
38 virtual void CreateNewWindow() OVERRIDE; 40 virtual void CreateNewWindow() OVERRIDE;
39 virtual views::Widget* CreateStatusArea() OVERRIDE; 41 virtual views::Widget* CreateStatusArea() OVERRIDE;
40 virtual void RequestAppListWidget(const SetWidgetCallback& callback) OVERRIDE; 42 virtual void RequestAppListWidget(const SetWidgetCallback& callback) OVERRIDE;
41 virtual void LauncherItemClicked( 43 virtual void LauncherItemClicked(
42 const aura_shell::LauncherItem& item) OVERRIDE; 44 const aura_shell::LauncherItem& item) OVERRIDE;
43 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE; 45 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE;
44 46
45 private: 47 private:
46 static ChromeShellDelegate* instance_; 48 static ChromeShellDelegate* instance_;
47 49
48 scoped_ptr<StatusAreaHostAura> status_area_host_; 50 scoped_ptr<StatusAreaHostAura> status_area_host_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 52 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
51 }; 53 };
52 54
53 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ 55 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.cc ('k') | chrome/browser/ui/views/aura/status_area_host_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698