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/tabs/default_tab_handler.h" | 5 #include "chrome/browser/tabs/default_tab_handler.h" |
6 #include "chrome/browser/tabs/tab_strip_model.h" | 6 #include "chrome/browser/tabs/tab_strip_model.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 | 8 |
9 //////////////////////////////////////////////////////////////////////////////// | 9 //////////////////////////////////////////////////////////////////////////////// |
10 // DefaultTabHandler, public: | 10 // DefaultTabHandler, public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 int DefaultTabHandler::GetDragActions() const { | 55 int DefaultTabHandler::GetDragActions() const { |
56 return delegate_->AsBrowser()->GetDragActions(); | 56 return delegate_->AsBrowser()->GetDragActions(); |
57 } | 57 } |
58 | 58 |
59 TabContentsWrapper* DefaultTabHandler::CreateTabContentsForURL( | 59 TabContentsWrapper* DefaultTabHandler::CreateTabContentsForURL( |
60 const GURL& url, | 60 const GURL& url, |
61 const GURL& referrer, | 61 const GURL& referrer, |
62 Profile* profile, | 62 Profile* profile, |
63 PageTransition::Type transition, | 63 content::PageTransition transition, |
64 bool defer_load, | 64 bool defer_load, |
65 SiteInstance* instance) const { | 65 SiteInstance* instance) const { |
66 return delegate_->AsBrowser()->CreateTabContentsForURL(url, | 66 return delegate_->AsBrowser()->CreateTabContentsForURL(url, |
67 referrer, | 67 referrer, |
68 profile, | 68 profile, |
69 transition, | 69 transition, |
70 defer_load, | 70 defer_load, |
71 instance); | 71 instance); |
72 } | 72 } |
73 | 73 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 delegate_->AsBrowser()->TabStripEmpty(); | 176 delegate_->AsBrowser()->TabStripEmpty(); |
177 } | 177 } |
178 | 178 |
179 //////////////////////////////////////////////////////////////////////////////// | 179 //////////////////////////////////////////////////////////////////////////////// |
180 // TabHandler, public: | 180 // TabHandler, public: |
181 | 181 |
182 // static | 182 // static |
183 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { | 183 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { |
184 return new DefaultTabHandler(delegate); | 184 return new DefaultTabHandler(delegate); |
185 } | 185 } |
OLD | NEW |