OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 11 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
12 #include "content/public/browser/user_metrics.h" | 12 #include "content/public/browser/user_metrics.h" |
13 #include "ui/gfx/animation/animation.h" | 13 #include "ui/gfx/animation/animation.h" |
14 #include "ui/gfx/animation/animation_delegate.h" | 14 #include "ui/gfx/animation/animation_delegate.h" |
15 #include "ui/gfx/image/image.h" | 15 #include "ui/gfx/image/image.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // The minimum required click-to-select area of an inactive tab before allowing | 19 // The minimum required click-to-select area of an inactive tab before allowing |
20 // the click-to-mute functionality to be enabled. This value is in terms of | 20 // the click-to-mute functionality to be enabled. This value is in terms of |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 - (void)windowDidChangeTheme { | 247 - (void)windowDidChangeTheme { |
248 // Force the alert icon to update because the icon color may change based | 248 // Force the alert icon to update because the icon color may change based |
249 // on the current theme. | 249 // on the current theme. |
250 [self updateIconForState:alertState_]; | 250 [self updateIconForState:alertState_]; |
251 } | 251 } |
252 | 252 |
253 - (void)windowDidChangeActive { | 253 - (void)windowDidChangeActive { |
254 } | 254 } |
255 | 255 |
256 @end | 256 @end |
OLD | NEW |