| 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 #include "gfx/rect.h" | 7 #include "gfx/rect.h" |
| 8 | 8 |
| 9 void TabContentsDelegate::DetachContents(TabContents* source) { | 9 void TabContentsDelegate::DetachContents(TabContents* source) { |
| 10 } | 10 } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 | 142 |
| 143 bool TabContentsDelegate::ShouldAddNavigationsToHistory() const { | 143 bool TabContentsDelegate::ShouldAddNavigationsToHistory() const { |
| 144 return true; | 144 return true; |
| 145 } | 145 } |
| 146 | 146 |
| 147 void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents, | 147 void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents, |
| 148 int32 page_id) { | 148 int32 page_id) { |
| 149 } | 149 } |
| 150 | 150 |
| 151 Browser* TabContentsDelegate::GetBrowser() { | |
| 152 return NULL; | |
| 153 } | |
| 154 | |
| 155 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { | 151 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { |
| 156 return NULL; | 152 return NULL; |
| 157 } | 153 } |
| 158 | 154 |
| 159 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { | 155 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { |
| 160 } | 156 } |
| 161 | 157 |
| 162 bool TabContentsDelegate::infobars_enabled() { | 158 bool TabContentsDelegate::infobars_enabled() { |
| 163 return true; | 159 return true; |
| 164 } | 160 } |
| 165 | 161 |
| 166 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { | 162 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { |
| 167 return false; | 163 return false; |
| 168 } | 164 } |
| 169 | 165 |
| 170 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { | 166 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { |
| 171 } | 167 } |
| 172 | 168 |
| 173 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { | 169 void TabContentsDelegate::ContentTypeChanged(TabContents* source) { |
| 174 } | 170 } |
| 175 | 171 |
| 176 void TabContentsDelegate::CommitMatchPreview(TabContents* source) { | 172 void TabContentsDelegate::CommitMatchPreview(TabContents* source) { |
| 177 } | 173 } |
| 178 | 174 |
| 179 TabContentsDelegate::~TabContentsDelegate() { | 175 TabContentsDelegate::~TabContentsDelegate() { |
| 180 } | 176 } |
| OLD | NEW |