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