| 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 "chrome/browser/search_engines/template_url.h" | 7 #include "chrome/browser/search_engines/template_url.h" |
| 8 #include "gfx/rect.h" | 8 #include "gfx/rect.h" |
| 9 | 9 |
| 10 void TabContentsDelegate::DetachContents(TabContents* source) { | 10 void TabContentsDelegate::DetachContents(TabContents* source) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } | 38 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } |
| 39 | 39 |
| 40 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { | 40 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { |
| 41 return true; | 41 return true; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 44 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
| 45 gfx::NativeWindow parent_window) { | 45 gfx::NativeWindow parent_window) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void TabContentsDelegate::WillRunBeforeUnloadConfirm() { |
| 49 } |
| 50 |
| 48 bool TabContentsDelegate::ShouldSuppressDialogs() { | 51 bool TabContentsDelegate::ShouldSuppressDialogs() { |
| 49 return false; | 52 return false; |
| 50 } | 53 } |
| 51 | 54 |
| 52 void TabContentsDelegate::BeforeUnloadFired(TabContents* tab, | 55 void TabContentsDelegate::BeforeUnloadFired(TabContents* tab, |
| 53 bool proceed, | 56 bool proceed, |
| 54 bool* proceed_to_fire_unload) { | 57 bool* proceed_to_fire_unload) { |
| 55 *proceed_to_fire_unload = true; | 58 *proceed_to_fire_unload = true; |
| 56 } | 59 } |
| 57 | 60 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 200 |
| 198 void TabContentsDelegate::OnInstantSupportDetermined(int32 page_id, | 201 void TabContentsDelegate::OnInstantSupportDetermined(int32 page_id, |
| 199 bool result) { | 202 bool result) { |
| 200 } | 203 } |
| 201 | 204 |
| 202 void TabContentsDelegate::ContentRestrictionsChanged(TabContents* source) { | 205 void TabContentsDelegate::ContentRestrictionsChanged(TabContents* source) { |
| 203 } | 206 } |
| 204 | 207 |
| 205 TabContentsDelegate::~TabContentsDelegate() { | 208 TabContentsDelegate::~TabContentsDelegate() { |
| 206 } | 209 } |
| OLD | NEW |