BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / android / tab_model / tab_model_list.h
blob1fa41eee16a2f110c52937fc9f67fa3fa9f490cb
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_
8 #include <vector>
10 #include "components/sessions/session_id.h"
12 class Profile;
13 class TabModel;
15 namespace chrome {
16 struct NavigateParams;
19 namespace content {
20 class WebContents;
23 // Stores a list of all TabModel objects.
24 class TabModelList {
25 public:
26 typedef std::vector<TabModel*> TabModelVector;
27 typedef TabModelVector::iterator iterator;
28 typedef TabModelVector::const_iterator const_iterator;
30 static void HandlePopupNavigation(chrome::NavigateParams* params);
31 static void AddTabModel(TabModel* tab_model);
32 static void RemoveTabModel(TabModel* tab_model);
34 static TabModel* GetTabModelForWebContents(
35 content::WebContents* web_contents);
36 static TabModel* FindTabModelWithId(SessionID::id_type desired_id);
37 static bool IsOffTheRecordSessionActive();
39 static const_iterator begin();
40 static const_iterator end();
41 static bool empty();
42 static size_t size();
44 static TabModel* get(size_t index);
46 private:
47 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList);
50 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_