| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/tab_contents/tab_contents_delegate.h" | 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 6 | 6 |
| 7 void TabContentsDelegate::DetachContents(TabContents* source) { | 7 void TabContentsDelegate::DetachContents(TabContents* source) { |
| 8 } | 8 } |
| 9 | 9 |
| 10 bool TabContentsDelegate::IsPopup(const TabContents* source) const { | 10 bool TabContentsDelegate::IsPopup(const TabContents* source) const { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 bool TabContentsDelegate::ShouldAddNavigationsToHistory() const { | 134 bool TabContentsDelegate::ShouldAddNavigationsToHistory() const { |
| 135 return true; | 135 return true; |
| 136 } | 136 } |
| 137 | 137 |
| 138 void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents, | 138 void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents, |
| 139 int32 page_id) { | 139 int32 page_id) { |
| 140 } | 140 } |
| 141 | 141 |
| 142 Browser* TabContentsDelegate::GetBrowser() { |
| 143 return NULL; |
| 144 } |
| 145 |
| 142 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { | 146 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { |
| 143 return NULL; | 147 return NULL; |
| 144 } | 148 } |
| 145 | 149 |
| 146 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { | 150 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { |
| 147 } | 151 } |
| 148 | 152 |
| 149 bool TabContentsDelegate::infobars_enabled() { | 153 bool TabContentsDelegate::infobars_enabled() { |
| 150 return true; | 154 return true; |
| 151 } | 155 } |
| 152 | 156 |
| 153 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { | 157 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { |
| 154 return false; | 158 return false; |
| 155 } | 159 } |
| 156 | 160 |
| 157 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { | 161 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { |
| 158 } | 162 } |
| 159 | 163 |
| 160 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { | 164 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { |
| 161 } | 165 } |
| 162 | 166 |
| 163 TabContentsDelegate::~TabContentsDelegate() { | 167 TabContentsDelegate::~TabContentsDelegate() { |
| 164 } | 168 } |
| OLD | NEW |