OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/tabs/tab_renderer.h" | 5 #include "chrome/browser/views/tabs/tab_renderer.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/gfx/font.h" | |
11 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
12 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
13 #include "app/slide_animation.h" | 11 #include "app/slide_animation.h" |
14 #include "app/throb_animation.h" | 12 #include "app/throb_animation.h" |
15 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
16 #include "chrome/browser/browser_theme_provider.h" | 14 #include "chrome/browser/browser_theme_provider.h" |
17 #include "chrome/browser/defaults.h" | 15 #include "chrome/browser/defaults.h" |
18 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
19 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
20 #include "chrome/browser/tabs/tab_strip_model.h" | 18 #include "chrome/browser/tabs/tab_strip_model.h" |
| 19 #include "gfx/canvas.h" |
21 #include "gfx/favicon_size.h" | 20 #include "gfx/favicon_size.h" |
| 21 #include "gfx/font.h" |
22 #include "gfx/skbitmap_operations.h" | 22 #include "gfx/skbitmap_operations.h" |
23 #include "grit/app_resources.h" | 23 #include "grit/app_resources.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" |
26 #include "views/widget/widget.h" | 26 #include "views/widget/widget.h" |
27 #include "views/window/non_client_view.h" | 27 #include "views/window/non_client_view.h" |
28 #include "views/window/window.h" | 28 #include "views/window/window.h" |
29 | 29 |
30 #ifdef WIN32 | 30 #ifdef WIN32 |
31 #include "app/win_util.h" | 31 #include "app/win_util.h" |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 | 889 |
890 void TabRenderer::SetBlocked(bool blocked) { | 890 void TabRenderer::SetBlocked(bool blocked) { |
891 if (data_.blocked == blocked) | 891 if (data_.blocked == blocked) |
892 return; | 892 return; |
893 data_.blocked = blocked; | 893 data_.blocked = blocked; |
894 if (blocked) | 894 if (blocked) |
895 StartPulse(); | 895 StartPulse(); |
896 else | 896 else |
897 StopPulse(); | 897 StopPulse(); |
898 } | 898 } |
OLD | NEW |