OLD | NEW |
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 #include "chrome/browser/download/download_started_animation.h" | 5 #include "chrome/browser/download/download_started_animation.h" |
6 | 6 |
7 #include "content/public/browser/notification_details.h" | 7 #include "content/public/browser/notification_details.h" |
8 #include "content/public/browser/notification_observer.h" | 8 #include "content/public/browser/notification_observer.h" |
9 #include "content/public/browser/notification_registrar.h" | 9 #include "content/public/browser/notification_registrar.h" |
10 #include "content/public/browser/notification_source.h" | 10 #include "content/public/browser/notification_source.h" |
11 #include "content/public/browser/notification_types.h" | 11 #include "content/public/browser/notification_types.h" |
12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources_standard.h" |
14 #include "ui/base/animation/linear_animation.h" | 14 #include "ui/base/animation/linear_animation.h" |
15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/views/controls/image_view.h" | 17 #include "ui/views/controls/image_view.h" |
18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
19 | 19 |
20 using content::WebContents; | 20 using content::WebContents; |
21 | 21 |
22 // How long to spend moving downwards and fading out after waiting. | 22 // How long to spend moving downwards and fading out after waiting. |
23 static const int kMoveTimeMs = 600; | 23 static const int kMoveTimeMs = 600; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 } // namespace | 182 } // namespace |
183 | 183 |
184 // static | 184 // static |
185 void DownloadStartedAnimation::Show(WebContents* web_contents) { | 185 void DownloadStartedAnimation::Show(WebContents* web_contents) { |
186 // The animation will delete itself when it's finished or when the tab | 186 // The animation will delete itself when it's finished or when the tab |
187 // contents is hidden or destroyed. | 187 // contents is hidden or destroyed. |
188 new DownloadStartedAnimationWin(web_contents); | 188 new DownloadStartedAnimationWin(web_contents); |
189 } | 189 } |
OLD | NEW |