| Index: ash/launcher/app_placeholder_view.h
|
| diff --git a/ash/launcher/app_placeholder_view.h b/ash/launcher/app_placeholder_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..92e2e274ab1892450cb96c78e7042ce645710c15
|
| --- /dev/null
|
| +++ b/ash/launcher/app_placeholder_view.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2012 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 ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_
|
| +#define ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_
|
| +
|
| +#include "base/timer.h"
|
| +#include "ui/views/view.h"
|
| +
|
| +namespace ash {
|
| +namespace internal {
|
| +
|
| +// AppPlaceholderView displays a pulsing white square. Each instance of this
|
| +// view starts the pulse animation with an incremental delay so that the
|
| +// animations run at different phases.
|
| +class AppPlaceholderView : public views::View {
|
| + public:
|
| + AppPlaceholderView();
|
| + virtual ~AppPlaceholderView();
|
| +
|
| + private:
|
| + void ScheduleAnimation();
|
| +
|
| + // views::View overrides:
|
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
| + virtual void ViewHierarchyChanged(bool is_add,
|
| + View* parent,
|
| + View* child) OVERRIDE;
|
| +
|
| + base::OneShotTimer<AppPlaceholderView> animation_delay_timer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AppPlaceholderView);
|
| +};
|
| +
|
| +} // namespace internal
|
| +} // namesapce ash
|
| +
|
| +#endif // ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_
|
|
|