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/media_indicator_button.h" | 5 #import "chrome/browser/ui/cocoa/tabs/media_indicator_button_cocoa.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "content/public/browser/user_metrics.h" | 9 #include "content/public/browser/user_metrics.h" |
10 #include "ui/gfx/animation/animation.h" | 10 #include "ui/gfx/animation/animation.h" |
11 #include "ui/gfx/animation/animation_delegate.h" | 11 #include "ui/gfx/animation/animation_delegate.h" |
12 #include "ui/gfx/image/image.h" | 12 #include "ui/gfx/image/image.h" |
13 | 13 |
14 @implementation MediaIndicatorButton | 14 @implementation MediaIndicatorButton |
15 | 15 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 content::RecordAction(UserMetricsAction("MediaIndicatorButton_Mute")); | 166 content::RecordAction(UserMetricsAction("MediaIndicatorButton_Mute")); |
167 else if (mediaState_ == TAB_MEDIA_STATE_AUDIO_MUTING) | 167 else if (mediaState_ == TAB_MEDIA_STATE_AUDIO_MUTING) |
168 content::RecordAction(UserMetricsAction("MediaIndicatorButton_Unmute")); | 168 content::RecordAction(UserMetricsAction("MediaIndicatorButton_Unmute")); |
169 else | 169 else |
170 NOTREACHED(); | 170 NOTREACHED(); |
171 | 171 |
172 [clickTarget_ performSelector:clickAction_ withObject:self]; | 172 [clickTarget_ performSelector:clickAction_ withObject:self]; |
173 } | 173 } |
174 | 174 |
175 @end | 175 @end |
OLD | NEW |