Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3886)

Unified Diff: chrome/browser/ui/cocoa/tabs/media_indicator_view.h

Issue 688523002: [Cocoa] Tab audio mute control, behind a switch (off by default). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent TabStripController from unconditionally causing creation of MediaIndicatorButton. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tabs/media_indicator_view.h
diff --git a/chrome/browser/ui/cocoa/tabs/media_indicator_view.h b/chrome/browser/ui/cocoa/tabs/media_indicator_view.h
deleted file mode 100644
index 9dd91ebdeff75ae424fbe23f1eea949fba8b5089..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/tabs/media_indicator_view.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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 CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_
-#define CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/ui/tabs/tab_utils.h"
-
-class MediaIndicatorViewAnimationDelegate;
-
-namespace gfx {
-class Animation;
-} // namespace gfx
-
-@interface MediaIndicatorView : NSImageView {
- @private
- TabMediaState mediaState_;
- scoped_ptr<MediaIndicatorViewAnimationDelegate> delegate_;
- scoped_ptr<gfx::Animation> animation_;
- TabMediaState animatingMediaState_;
-}
-
-@property(readonly, nonatomic) TabMediaState mediaState;
-@property(readonly, nonatomic) TabMediaState animatingMediaState;
-
-// Initialize a new MediaIndicatorView in TAB_MEDIA_STATE_NONE (i.e., a
-// non-active indicator).
-- (id)init;
-
-// Starts the animation to transition the indicator to the new |mediaState|.
-- (void)updateIndicator:(TabMediaState)mediaState;
-
-// Register a callback to be invoked whenever the animation completes.
-- (void)setAnimationDoneCallbackObject:(id)anObject withSelector:(SEL)selector;
-
-@end
-
-@interface MediaIndicatorView(TestingAPI)
-// Turns off animations for logic testing.
-- (void)disableAnimations;
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698