This source file includes following definitions.
- AddTabAt
- CreateNewStripWithContents
- WillAddWebContents
- GetDragActions
- CanDuplicateContentsAt
- DuplicateContentsAt
- CloseFrameAfterDragSession
- CreateHistoricalTab
- ShouldRunUnloadListenerBeforeClosing
- RunUnloadListenerBeforeClosing
- GetRestoreTabType
- RestoreTab
- CanBookmarkAllTabs
- BookmarkAllTabs
#include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
TestTabStripModelDelegate::TestTabStripModelDelegate() {
}
TestTabStripModelDelegate::~TestTabStripModelDelegate() {
}
void TestTabStripModelDelegate::AddTabAt(const GURL& url,
int index,
bool foreground) {
}
Browser* TestTabStripModelDelegate::CreateNewStripWithContents(
const std::vector<NewStripContents>& contentses,
const gfx::Rect& window_bounds,
bool maximize) {
return NULL;
}
void TestTabStripModelDelegate::WillAddWebContents(
content::WebContents* contents) {
CoreTabHelper::CreateForWebContents(contents);
extensions::TabHelper::CreateForWebContents(contents);
}
int TestTabStripModelDelegate::GetDragActions() const {
return 0;
}
bool TestTabStripModelDelegate::CanDuplicateContentsAt(int index) {
return false;
}
void TestTabStripModelDelegate::DuplicateContentsAt(int index) {
}
void TestTabStripModelDelegate::CloseFrameAfterDragSession() {
}
void TestTabStripModelDelegate::CreateHistoricalTab(
content::WebContents* contents) {
}
bool TestTabStripModelDelegate::ShouldRunUnloadListenerBeforeClosing(
content::WebContents* contents) {
return false;
}
bool TestTabStripModelDelegate::RunUnloadListenerBeforeClosing(
content::WebContents* contents) {
return true;
}
TabStripModelDelegate::RestoreTabType
TestTabStripModelDelegate::GetRestoreTabType() {
return TabStripModelDelegate::RESTORE_NONE;
}
void TestTabStripModelDelegate::RestoreTab() {
}
bool TestTabStripModelDelegate::CanBookmarkAllTabs() const {
return true;
}
void TestTabStripModelDelegate::BookmarkAllTabs() {
}