summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/tabs/tab_strip_model_utils.h
blob: a4fa9dbd5bfadd123dd3e536ce6edc058b7e5192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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.

#ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
#define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_

class TabStripModel;

namespace chrome {

// Returns the index of the first tab that is blocked. This returns
// |model->count()| if no tab is blocked.
int IndexOfFirstBlockedTab(const TabStripModel* model);

}  // namespace chrome

#endif  // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_