Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc

Issue 983853002: Hide close buttons of inactive stacked tabs by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms.xml changed Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/views/tabs/tab.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/views/tabs/tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698