summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/tabs/test_tab_strip_model_delegate.cc
blob: c9a6fcc14fd7c91c669209c5599208041da720f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h"

#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/dock_info.h"
#include "ui/gfx/rect.h"

using content::SiteInstance;

TestTabStripModelDelegate::TestTabStripModelDelegate() {
}

TestTabStripModelDelegate::~TestTabStripModelDelegate() {
}

TabContents* TestTabStripModelDelegate::AddBlankTab(bool foreground) {
  return NULL;
}

TabContents* TestTabStripModelDelegate::AddBlankTabAt(int index,
                                                      bool foreground) {
  return NULL;
}

Browser* TestTabStripModelDelegate::CreateNewStripWithContents(
    TabContents* contents,
    const gfx::Rect& window_bounds,
    const DockInfo& dock_info,
    bool maximize) {
  return NULL;
}

int TestTabStripModelDelegate::GetDragActions() const {
  return 0;
}

TabContents* TestTabStripModelDelegate::CreateTabContentsForURL(
      const GURL& url,
      const content::Referrer& referrer,
      Profile* profile,
      content::PageTransition transition,
      bool defer_load,
      SiteInstance* instance) const {
  return NULL;
}

bool TestTabStripModelDelegate::CanDuplicateContentsAt(int index) {
  return false;
}

void TestTabStripModelDelegate::DuplicateContentsAt(int index) {
}

void TestTabStripModelDelegate::CloseFrameAfterDragSession() {
}

void TestTabStripModelDelegate::CreateHistoricalTab(TabContents* contents) {
}

bool TestTabStripModelDelegate::RunUnloadListenerBeforeClosing(
    TabContents* contents) {
  return true;
}

bool TestTabStripModelDelegate::CanRestoreTab() {
  return false;
}

void TestTabStripModelDelegate::RestoreTab() {
}

bool TestTabStripModelDelegate::CanCloseContents(std::vector<int>* indices) {
  return true;
}

bool TestTabStripModelDelegate::CanBookmarkAllTabs() const {
  return true;
}

void TestTabStripModelDelegate::BookmarkAllTabs() {
}

bool TestTabStripModelDelegate::CanCloseTab() const {
  return true;
}

bool TestTabStripModelDelegate::LargeIconsPermitted() const {
  return true;
}