| 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 | |
| 146 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { | 142 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { |
| 147 return NULL; | 143 return NULL; |
| 148 } | 144 } |
| 149 | 145 |
| 150 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { | 146 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { |
| 151 } | 147 } |
| 152 | 148 |
| 153 bool TabContentsDelegate::infobars_enabled() { | 149 bool TabContentsDelegate::infobars_enabled() { |
| 154 return true; | 150 return true; |
| 155 } | 151 } |
| 156 | 152 |
| 157 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { | 153 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { |
| 158 return false; | 154 return false; |
| 159 } | 155 } |
| 160 | 156 |
| 161 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { | 157 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { |
| 162 } | 158 } |
| 163 | 159 |
| 164 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { | 160 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { |
| 165 } | 161 } |
| 166 | 162 |
| 167 TabContentsDelegate::~TabContentsDelegate() { | 163 TabContentsDelegate::~TabContentsDelegate() { |
| 168 } | 164 } |
| OLD | NEW |