| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/tabs/fake_base_tab_strip_controller.h" | 5 #include "chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" | 7 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" |
| 8 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 8 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 9 | 9 |
| 10 FakeBaseTabStripController::FakeBaseTabStripController() | 10 FakeBaseTabStripController::FakeBaseTabStripController() |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 bool FakeBaseTabStripController::IsTabPinned(int index) const { | 59 bool FakeBaseTabStripController::IsTabPinned(int index) const { |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool FakeBaseTabStripController::IsNewTabPage(int index) const { | 63 bool FakeBaseTabStripController::IsNewTabPage(int index) const { |
| 64 return false; | 64 return false; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void FakeBaseTabStripController::SelectTab(int index) { | 67 void FakeBaseTabStripController::SelectTab(int index) { |
| 68 if (!IsValidIndex(index)) |
| 69 return; |
| 70 active_index_ = index; |
| 68 } | 71 } |
| 69 | 72 |
| 70 void FakeBaseTabStripController::ExtendSelectionTo(int index) { | 73 void FakeBaseTabStripController::ExtendSelectionTo(int index) { |
| 71 } | 74 } |
| 72 | 75 |
| 73 void FakeBaseTabStripController::ToggleSelected(int index) { | 76 void FakeBaseTabStripController::ToggleSelected(int index) { |
| 74 } | 77 } |
| 75 | 78 |
| 76 void FakeBaseTabStripController::AddSelectionFromAnchorTo(int index) { | 79 void FakeBaseTabStripController::AddSelectionFromAnchorTo(int index) { |
| 77 } | 80 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 127 |
| 125 void FakeBaseTabStripController::OnStartedDraggingTabs() { | 128 void FakeBaseTabStripController::OnStartedDraggingTabs() { |
| 126 } | 129 } |
| 127 | 130 |
| 128 void FakeBaseTabStripController::OnStoppedDraggingTabs() { | 131 void FakeBaseTabStripController::OnStoppedDraggingTabs() { |
| 129 } | 132 } |
| 130 | 133 |
| 131 void FakeBaseTabStripController::CheckFileSupported(const GURL& url) { | 134 void FakeBaseTabStripController::CheckFileSupported(const GURL& url) { |
| 132 tab_strip_->FileSupported(url, true); | 135 tab_strip_->FileSupported(url, true); |
| 133 } | 136 } |
| OLD | NEW |