| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/launcher/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
| 10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Returns whether a launcher item should be created for |browser|. If an item | 36 // Returns whether a launcher item should be created for |browser|. If an item |
| 37 // should be created |type| is set to the launcher type to create. | 37 // should be created |type| is set to the launcher type to create. |
| 38 static bool ShouldCreateLauncherItemForBrowser( | 38 static bool ShouldCreateLauncherItemForBrowser( |
| 39 Browser* browser, | 39 Browser* browser, |
| 40 ash::LauncherItemType* type); | 40 ash::LauncherItemType* type); |
| 41 | 41 |
| 42 // ash::ShellDelegate overrides; | 42 // ash::ShellDelegate overrides; |
| 43 virtual void CreateNewWindow() OVERRIDE; | 43 virtual void CreateNewWindow() OVERRIDE; |
| 44 virtual views::Widget* CreateStatusArea() OVERRIDE; | 44 virtual views::Widget* CreateStatusArea() OVERRIDE; |
| 45 virtual void Exit() OVERRIDE; |
| 45 virtual void BuildAppListModel(ash::AppListModel* model) OVERRIDE; | 46 virtual void BuildAppListModel(ash::AppListModel* model) OVERRIDE; |
| 46 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 47 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 47 virtual std::vector<aura::Window*> GetCycleWindowList( | 48 virtual std::vector<aura::Window*> GetCycleWindowList( |
| 48 CycleSource source, | 49 CycleSource source, |
| 49 CycleOrder order) const OVERRIDE; | 50 CycleOrder order) const OVERRIDE; |
| 50 virtual void LauncherItemClicked( | 51 virtual void LauncherItemClicked( |
| 51 const ash::LauncherItem& item) OVERRIDE; | 52 const ash::LauncherItem& item) OVERRIDE; |
| 52 virtual bool ConfigureLauncherItem(ash::LauncherItem* item) OVERRIDE; | 53 virtual bool ConfigureLauncherItem(ash::LauncherItem* item) OVERRIDE; |
| 53 virtual int GetBrowserShortcutResourceId() OVERRIDE; | 54 virtual int GetBrowserShortcutResourceId() OVERRIDE; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 static ChromeShellDelegate* instance_; | 57 static ChromeShellDelegate* instance_; |
| 57 | 58 |
| 58 scoped_ptr<StatusAreaHostAura> status_area_host_; | 59 scoped_ptr<StatusAreaHostAura> status_area_host_; |
| 59 | 60 |
| 60 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 61 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ | 64 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |