diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-18 13:29:15 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-18 13:29:15 +0000 |
commit | 214594aee1595c3f44046c94152fc09fafde0b02 (patch) | |
tree | 35d73ca25cadd00791e59971e074fa0200eea675 /chrome/browser/app_launched_animation.h | |
parent | 03c379af76cb72a4f59dc4631182104da6bbdd4f (diff) | |
download | chromium_src-214594aee1595c3f44046c94152fc09fafde0b02.zip chromium_src-214594aee1595c3f44046c94152fc09fafde0b02.tar.gz chromium_src-214594aee1595c3f44046c94152fc09fafde0b02.tar.bz2 |
NTP: Adds an app launched animation.
This uses a popup window that is carefully positioned to be placed over the icon on the NTP. The popup fades out after a short delay.
BUG=None
TEST=Start with --enable-apps and launch an app. The icon should *stick* for a very short period and then fade out.
Review URL: http://codereview.chromium.org/2095008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_launched_animation.h')
-rw-r--r-- | chrome/browser/app_launched_animation.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/browser/app_launched_animation.h b/chrome/browser/app_launched_animation.h new file mode 100644 index 0000000..b31a25d --- /dev/null +++ b/chrome/browser/app_launched_animation.h @@ -0,0 +1,28 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_APP_LAUNCHED_ANIMATION_H_ +#define CHROME_BROWSER_APP_LAUNCHED_ANIMATION_H_ + +#include "base/basictypes.h" + +class Extension; + +namespace gfx { + class Rect; +} + +class AppLaunchedAnimation { + public: + // Starts an animation of the |extension| being launched. The |rect| is the + // rect of the app icon. + static void Show(Extension* extension, const gfx::Rect& rect); + + private: + AppLaunchedAnimation() { } + + DISALLOW_COPY_AND_ASSIGN(AppLaunchedAnimation); +}; + +#endif // CHROME_BROWSER_APP_LAUNCHED_ANIMATION_H_ |