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

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

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ut fix. Created 8 years, 7 months 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) 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_ASH_CHROME_SHELL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_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
35 virtual void LockScreen() OVERRIDE; 35 virtual void LockScreen() OVERRIDE;
36 virtual void UnlockScreen() OVERRIDE; 36 virtual void UnlockScreen() OVERRIDE;
37 virtual bool IsScreenLocked() const OVERRIDE; 37 virtual bool IsScreenLocked() const OVERRIDE;
38 virtual void Shutdown() OVERRIDE; 38 virtual void Shutdown() OVERRIDE;
39 virtual void Exit() OVERRIDE; 39 virtual void Exit() OVERRIDE;
40 virtual void NewWindow(bool is_incognito) OVERRIDE; 40 virtual void NewWindow(bool is_incognito) OVERRIDE;
41 virtual void Search() OVERRIDE; 41 virtual void Search() OVERRIDE;
42 virtual void OpenFileManager() OVERRIDE; 42 virtual void OpenFileManager() OVERRIDE;
43 virtual void OpenCrosh() OVERRIDE; 43 virtual void OpenCrosh() OVERRIDE;
44 virtual void OpenMobileSetup() OVERRIDE; 44 virtual void OpenMobileSetup() OVERRIDE;
45 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE;
45 virtual void ToggleSpokenFeedback() OVERRIDE; 46 virtual void ToggleSpokenFeedback() OVERRIDE;
46 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; 47 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
47 virtual void StartPartialScreenshot( 48 virtual void StartPartialScreenshot(
48 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; 49 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE;
49 virtual ash::LauncherDelegate* CreateLauncherDelegate( 50 virtual ash::LauncherDelegate* CreateLauncherDelegate(
50 ash::LauncherModel* model) OVERRIDE; 51 ash::LauncherModel* model) OVERRIDE;
51 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( 52 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate(
52 ash::SystemTray* tray) OVERRIDE; 53 ash::SystemTray* tray) OVERRIDE;
53 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; 54 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE;
54 55
55 // content::NotificationObserver override: 56 // content::NotificationObserver override:
56 virtual void Observe(int type, 57 virtual void Observe(int type,
57 const content::NotificationSource& source, 58 const content::NotificationSource& source,
58 const content::NotificationDetails& details) OVERRIDE; 59 const content::NotificationDetails& details) OVERRIDE;
59 60
60 private: 61 private:
61 static ChromeShellDelegate* instance_; 62 static ChromeShellDelegate* instance_;
62 63
63 content::NotificationRegistrar registrar_; 64 content::NotificationRegistrar registrar_;
64 65
65 scoped_ptr<WindowPositioner> window_positioner_; 66 scoped_ptr<WindowPositioner> window_positioner_;
66 67
67 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; 68 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 70 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
70 }; 71 };
71 72
72 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ 73 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698