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

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

Issue 8800010: Update CreateTabContents to use a content::Referrer instead of a plain URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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 | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import "chrome/browser/ui/browser_window.h" 9 #import "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 virtual void ContinueDraggingDetachedTab(TabContentsWrapper* contents, 54 virtual void ContinueDraggingDetachedTab(TabContentsWrapper* contents,
55 const gfx::Rect& window_bounds, 55 const gfx::Rect& window_bounds,
56 const gfx::Rect& tab_bounds) { 56 const gfx::Rect& tab_bounds) {
57 } 57 }
58 virtual int GetDragActions() const { 58 virtual int GetDragActions() const {
59 return 0; 59 return 0;
60 } 60 }
61 virtual TabContentsWrapper* CreateTabContentsForURL( 61 virtual TabContentsWrapper* CreateTabContentsForURL(
62 const GURL& url, 62 const GURL& url,
63 const GURL& referrer, 63 const content::Referrer& referrer,
64 Profile* profile, 64 Profile* profile,
65 content::PageTransition transition, 65 content::PageTransition transition,
66 bool defer_load, 66 bool defer_load,
67 SiteInstance* instance) const { 67 SiteInstance* instance) const {
68 return NULL; 68 return NULL;
69 } 69 }
70 virtual bool CanDuplicateContentsAt(int index) { return true; } 70 virtual bool CanDuplicateContentsAt(int index) { return true; }
71 virtual void DuplicateContentsAt(int index) { } 71 virtual void DuplicateContentsAt(int index) { }
72 virtual void CloseFrameAfterDragSession() { } 72 virtual void CloseFrameAfterDragSession() { }
73 virtual void CreateHistoricalTab(TabContentsWrapper* contents) { } 73 virtual void CreateHistoricalTab(TabContentsWrapper* contents) { }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // TODO(pinkerton): Implement http://crbug.com/10899 165 // TODO(pinkerton): Implement http://crbug.com/10899
166 } 166 }
167 167
168 // Test that changing the number of tabs broadcasts a 168 // Test that changing the number of tabs broadcasts a
169 // kTabStripNumberOfTabsChanged notifiction. 169 // kTabStripNumberOfTabsChanged notifiction.
170 TEST_F(TabStripControllerTest, Notifications) { 170 TEST_F(TabStripControllerTest, Notifications) {
171 // TODO(pinkerton): Implement http://crbug.com/10899 171 // TODO(pinkerton): Implement http://crbug.com/10899
172 } 172 }
173 173
174 } // namespace 174 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698