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

Side by Side Diff: chrome/browser/ui/views/screensaver_extension_dialog.h

Issue 9455038: Screensaver at login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
sky 2012/02/24 05:03:53 2012
rkc 2012/02/25 02:14:02 Done.
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_SCREENSAVER_EXTENSION_DIALOG_H_
sky 2012/02/24 05:03:53 Should this class exist in chrome/browser/chromeos
rkc 2012/02/25 02:14:02 Done.
6 #define CHROME_BROWSER_UI_VIEWS_SCREENSAVER_EXTENSION_DIALOG_H_
7 #pragma once
8
9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/views/extensions/extension_dialog_observer.h"
12
13 class ExtensionDialog;
14
15 namespace browser {
16
17 void ShowScreensaverDialog();
18 void CloseScreensaverDialog();
19
20 } // namespace browser
21
22 // Shows or hides the screensaver extension in fullscreen mode on
23 // top of all other windows.
24 class ScreensaverExtensionDialog
25 : public ExtensionDialogObserver {
26 public:
27 static void ShowScreensaverDialog();
28 static void CloseScreensaverDialog();
29
30 // ExtensionDialog::Observer implementation.
31 virtual void ExtensionDialogClosing(ExtensionDialog* dialog) OVERRIDE;
32 virtual void ExtensionTerminated(ExtensionDialog* dialog) OVERRIDE;
33
34 protected:
35 // ScreensaverDialog implementation.
36 virtual void Show();
sky 2012/02/24 05:03:53 OVERRIDE on these two.
rkc 2012/02/25 02:14:02 Done.
37 virtual void Close();
38
39 private:
40 friend class ScreensaverExtensionDialogBrowserTest;
41 friend class ScreensaverExtensionDialogTest;
42
43 explicit ScreensaverExtensionDialog();
sky 2012/02/24 05:03:53 no explicit
rkc 2012/02/25 02:14:02 Done.
44 virtual ~ScreensaverExtensionDialog();
45
46 // Load the screensaver extension.
47 void LoadExtension();
48 // Reload the screensaver extension and show another screensaver dialog.
49 void ReloadAndShow();
50
51 scoped_refptr<Extension> screensaver_extension_;
52 // Host for the extension that implements this dialog.
53 scoped_refptr<ExtensionDialog> extension_dialog_;
54
55 DISALLOW_COPY_AND_ASSIGN(ScreensaverExtensionDialog);
56 };
57
58 #endif // CHROME_BROWSER_UI_VIEWS_SCREENSAVER_EXTENSION_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698