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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm

Issue 2086273003: [Mac] Reveal Fullscreen Toolbar for Tab Strip Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped_nsobject Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/mac/scoped_nsautorelease_pool.h" 8 #include "base/mac/scoped_nsautorelease_pool.h"
9 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 9 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
10 #include "chrome/browser/media/media_stream_capture_indicator.h" 10 #include "chrome/browser/media/media_stream_capture_indicator.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 @end 55 @end
56 56
57 @implementation TestTabStripControllerDelegate 57 @implementation TestTabStripControllerDelegate
58 - (void)onActivateTabWithContents:(WebContents*)contents { 58 - (void)onActivateTabWithContents:(WebContents*)contents {
59 } 59 }
60 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change 60 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change
61 withContents:(WebContents*)contents { 61 withContents:(WebContents*)contents {
62 } 62 }
63 - (void)onTabDetachedWithContents:(WebContents*)contents { 63 - (void)onTabDetachedWithContents:(WebContents*)contents {
64 } 64 }
65 - (void)onTabInsertedInForeground:(BOOL)inForeground {
66 }
65 @end 67 @end
66 68
67 69
68 // Helper class for invoking a base::Closure via 70 // Helper class for invoking a base::Closure via
69 // -performSelector:withObject:afterDelay:. 71 // -performSelector:withObject:afterDelay:.
70 @interface TestClosureRunner : NSObject { 72 @interface TestClosureRunner : NSObject {
71 @private 73 @private
72 base::Closure closure_; 74 base::Closure closure_;
73 } 75 }
74 - (id)initWithClosure:(const base::Closure&)closure; 76 - (id)initWithClosure:(const base::Closure&)closure;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 [tabStripControllerForTesting setAlertStateForContents:contents_at_tab0 486 [tabStripControllerForTesting setAlertStateForContents:contents_at_tab0
485 withAlertState:TabAlertState::NONE]; 487 withAlertState:TabAlertState::NONE];
486 [controller_ updateWindowAlertState:TabAlertState::NONE 488 [controller_ updateWindowAlertState:TabAlertState::NONE
487 forWebContents:contents_at_tab0]; 489 forWebContents:contents_at_tab0];
488 // Neither of tabs playing nor muting, so the window alert state should be 490 // Neither of tabs playing nor muting, so the window alert state should be
489 // NONE. 491 // NONE.
490 EXPECT_EQ(TabAlertState::NONE, [window_controller alertState]); 492 EXPECT_EQ(TabAlertState::NONE, [window_controller alertState]);
491 } 493 }
492 494
493 } // namespace 495 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698