| OLD | NEW |
| 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 #include "chrome/browser/browser_shutdown.h" | 5 #include "chrome/browser/browser_shutdown.h" |
| 6 #include "chrome/browser/tabs/default_tab_handler.h" | 6 #include "chrome/browser/tabs/default_tab_handler.h" |
| 7 #include "chrome/browser/tabs/tab_strip_model.h" | 7 #include "chrome/browser/tabs/tab_strip_model.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 | 9 |
| 10 //////////////////////////////////////////////////////////////////////////////// | 10 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int DefaultTabHandler::GetDragActions() const { | 57 int DefaultTabHandler::GetDragActions() const { |
| 58 return delegate_->AsBrowser()->GetDragActions(); | 58 return delegate_->AsBrowser()->GetDragActions(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 TabContentsWrapper* DefaultTabHandler::CreateTabContentsForURL( | 61 TabContentsWrapper* DefaultTabHandler::CreateTabContentsForURL( |
| 62 const GURL& url, | 62 const GURL& url, |
| 63 const content::Referrer& 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 content::SiteInstance* instance) const { |
| 68 return delegate_->AsBrowser()->CreateTabContentsForURL(url, | 68 return delegate_->AsBrowser()->CreateTabContentsForURL(url, |
| 69 referrer, | 69 referrer, |
| 70 profile, | 70 profile, |
| 71 transition, | 71 transition, |
| 72 defer_load, | 72 defer_load, |
| 73 instance); | 73 instance); |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool DefaultTabHandler::CanDuplicateContentsAt(int index) { | 76 bool DefaultTabHandler::CanDuplicateContentsAt(int index) { |
| 77 return delegate_->AsBrowser()->CanDuplicateContentsAt(index); | 77 return delegate_->AsBrowser()->CanDuplicateContentsAt(index); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 delegate_->AsBrowser()->TabStripEmpty(); | 178 delegate_->AsBrowser()->TabStripEmpty(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 //////////////////////////////////////////////////////////////////////////////// | 181 //////////////////////////////////////////////////////////////////////////////// |
| 182 // TabHandler, public: | 182 // TabHandler, public: |
| 183 | 183 |
| 184 // static | 184 // static |
| 185 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { | 185 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { |
| 186 return new DefaultTabHandler(delegate); | 186 return new DefaultTabHandler(delegate); |
| 187 } | 187 } |
| OLD | NEW |