summaryrefslogtreecommitdiffstats
path: root/ash/shell_delegate.h
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 01:15:10 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 01:15:10 +0000
commit697f04c0a9168dfb3b85f8764ad9e4fb32e369e3 (patch)
tree2a06773998e72c5ea2d06869aab03567f9463bf5 /ash/shell_delegate.h
parentabd82e6cf2b284bc839acf9984d90111787a9065 (diff)
downloadchromium_src-697f04c0a9168dfb3b85f8764ad9e4fb32e369e3.zip
chromium_src-697f04c0a9168dfb3b85f8764ad9e4fb32e369e3.tar.gz
chromium_src-697f04c0a9168dfb3b85f8764ad9e4fb32e369e3.tar.bz2
ash: Display system background while loading wallpaper.
When the wallpaper takes a long time to load, areas of the screen that aren't covered by other layers are painted white. This looks okay when we first boot, but not when we're displaying the login after logging out or while we're starting a guest session. This makes us instead initialize SystemBackgroundController immediately with either a #fefefe or black color depending on whether this is the first Chrome run after boot or not. Its color is updated to black after the login wallpaper animation is finished. BUG=151111,152751 Review URL: https://chromiumcodereview.appspot.com/11054005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r--ash/shell_delegate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index c095013..92ec386 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -64,6 +64,11 @@ class ASH_EXPORT ShellDelegate {
// Returns true if we're logged in and browser has been started
virtual bool IsSessionStarted() = 0;
+ // Returns true if this is the first time that the shell has been run after
+ // the system has booted. false is returned after the shell has been
+ // restarted, typically due to logging in as a guest or logging out.
+ virtual bool IsFirstRunAfterBoot() = 0;
+
// Invoked when a user locks the screen.
virtual void LockScreen() = 0;