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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/media_indicator_view.h

Issue 69143003: [Mac] Fix title text re-expanding after tab media indicator shuts off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/media_indicator_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 @property(readonly, nonatomic) TabMediaState mediaState; 27 @property(readonly, nonatomic) TabMediaState mediaState;
28 @property(readonly, nonatomic) TabMediaState animatingMediaState; 28 @property(readonly, nonatomic) TabMediaState animatingMediaState;
29 29
30 // Initialize a new MediaIndicatorView in TAB_MEDIA_STATE_NONE (i.e., a 30 // Initialize a new MediaIndicatorView in TAB_MEDIA_STATE_NONE (i.e., a
31 // non-active indicator). 31 // non-active indicator).
32 - (id)init; 32 - (id)init;
33 33
34 // Starts the animation to transition the indicator to the new |mediaState|. 34 // Starts the animation to transition the indicator to the new |mediaState|.
35 - (void)updateIndicator:(TabMediaState)mediaState; 35 - (void)updateIndicator:(TabMediaState)mediaState;
36 36
37 // Register a callback to be invoked whenever the animation completes.
38 - (void)setAnimationDoneCallbackObject:(id)anObject withSelector:(SEL)selector;
Avi (use Gerrit) 2013/11/12 20:38:46 Take a block?
39
37 @end 40 @end
38 41
39 @interface MediaIndicatorView(TestingAPI) 42 @interface MediaIndicatorView(TestingAPI)
40 // Turns off animations for logic testing. 43 // Turns off animations for logic testing.
41 - (void)disableAnimations; 44 - (void)disableAnimations;
42 @end 45 @end
43 46
44 #endif // CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_ 47 #endif // CHROME_BROWSER_UI_COCOA_TABS_MEDIA_INDICATOR_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/media_indicator_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698