| OLD | NEW |
| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/ui/browser_tabstrip.h" | 9 #include "chrome/browser/ui/browser_tabstrip.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 using content::WebContents; | 26 using content::WebContents; |
| 27 | 27 |
| 28 @interface TestTabStripControllerDelegate | 28 @interface TestTabStripControllerDelegate |
| 29 : NSObject<TabStripControllerDelegate> { | 29 : NSObject<TabStripControllerDelegate> { |
| 30 } | 30 } |
| 31 @end | 31 @end |
| 32 | 32 |
| 33 @implementation TestTabStripControllerDelegate | 33 @implementation TestTabStripControllerDelegate |
| 34 - (void)onActivateTabWithContents:(WebContents*)contents { | 34 - (void)onActivateTabWithContents:(WebContents*)contents { |
| 35 } | 35 } |
| 36 - (void)onReplaceTabWithContents:(WebContents*)contents { | |
| 37 } | |
| 38 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change | 36 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change |
| 39 withContents:(WebContents*)contents { | 37 withContents:(WebContents*)contents { |
| 40 } | 38 } |
| 41 - (void)onTabDetachedWithContents:(WebContents*)contents { | 39 - (void)onTabDetachedWithContents:(WebContents*)contents { |
| 42 } | 40 } |
| 43 - (void)onInsertTabWithContents:(WebContents*)contents { | |
| 44 } | |
| 45 @end | 41 @end |
| 46 | 42 |
| 47 @interface TabStripController (Test) | 43 @interface TabStripController (Test) |
| 48 | 44 |
| 49 - (void)mouseMoved:(NSEvent*)event; | 45 - (void)mouseMoved:(NSEvent*)event; |
| 50 | 46 |
| 51 @end | 47 @end |
| 52 | 48 |
| 53 @implementation TabView (Test) | 49 @implementation TabView (Test) |
| 54 | 50 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 219 |
| 224 [controller_.get() mouseMoved:event]; | 220 [controller_.get() mouseMoved:event]; |
| 225 EXPECT_STREQ("Tab2", | 221 EXPECT_STREQ("Tab2", |
| 226 [[controller_ view:nil | 222 [[controller_ view:nil |
| 227 stringForToolTip:nil | 223 stringForToolTip:nil |
| 228 point:NSMakePoint(0,0) | 224 point:NSMakePoint(0,0) |
| 229 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]); | 225 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]); |
| 230 } | 226 } |
| 231 | 227 |
| 232 } // namespace | 228 } // namespace |
| OLD | NEW |