| 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 "content/browser/tab_contents/tab_contents_delegate.h" | 5 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "content/browser/javascript_dialogs.h" | 10 #include "content/browser/javascript_dialogs.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 void TabContentsDelegate::HandleMouseUp() { | 181 void TabContentsDelegate::HandleMouseUp() { |
| 182 } | 182 } |
| 183 | 183 |
| 184 void TabContentsDelegate::HandleMouseActivate() { | 184 void TabContentsDelegate::HandleMouseActivate() { |
| 185 } | 185 } |
| 186 | 186 |
| 187 void TabContentsDelegate::DragEnded() { | 187 void TabContentsDelegate::DragEnded() { |
| 188 } | 188 } |
| 189 | 189 |
| 190 void TabContentsDelegate::ShowRepostFormWarningDialog( | 190 void TabContentsDelegate::ShowTabModalDialog(TabModalDialogDelegate* delegate, |
| 191 TabContents* tab_contents) { | 191 TabContents* tab_contents) { |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool TabContentsDelegate::OnGoToEntryOffset(int offset) { | 194 bool TabContentsDelegate::OnGoToEntryOffset(int offset) { |
| 195 return true; | 195 return true; |
| 196 } | 196 } |
| 197 | 197 |
| 198 bool TabContentsDelegate::ShouldAddNavigationToHistory( | 198 bool TabContentsDelegate::ShouldAddNavigationToHistory( |
| 199 const history::HistoryAddPageArgs& add_page_args, | 199 const history::HistoryAddPageArgs& add_page_args, |
| 200 content::NavigationType navigation_type) { | 200 content::NavigationType navigation_type) { |
| 201 return true; | 201 return true; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 attached_contents_.insert(tab_contents); | 344 attached_contents_.insert(tab_contents); |
| 345 } | 345 } |
| 346 | 346 |
| 347 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 347 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| 348 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 348 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| 349 attached_contents_.erase(tab_contents); | 349 attached_contents_.erase(tab_contents); |
| 350 } | 350 } |
| 351 | 351 |
| 352 void TabContentsDelegate::LostMouseLock() { | 352 void TabContentsDelegate::LostMouseLock() { |
| 353 } | 353 } |
| OLD | NEW |