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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model_list.h

Issue 2088443003: Shortcut ctrl+shift+T added on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes based on review feedback. Created 4 years, 5 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
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 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 typedef std::vector<TabModel*> TabModelVector; 29 typedef std::vector<TabModel*> TabModelVector;
30 typedef TabModelVector::iterator iterator; 30 typedef TabModelVector::iterator iterator;
31 typedef TabModelVector::const_iterator const_iterator; 31 typedef TabModelVector::const_iterator const_iterator;
32 32
33 static void HandlePopupNavigation(chrome::NavigateParams* params); 33 static void HandlePopupNavigation(chrome::NavigateParams* params);
34 static void AddTabModel(TabModel* tab_model); 34 static void AddTabModel(TabModel* tab_model);
35 static void RemoveTabModel(TabModel* tab_model); 35 static void RemoveTabModel(TabModel* tab_model);
36 36
37 static TabModel* GetTabModelForWebContents( 37 static TabModel* GetTabModelForWebContents(
38 content::WebContents* web_contents); 38 const content::WebContents* web_contents);
Theresa 2016/06/30 20:50:25 Does this still need to be const?
xingliu 2016/07/01 00:30:39 Done.
39 static TabModel* FindTabModelWithId(SessionID::id_type desired_id); 39 static TabModel* FindTabModelWithId(SessionID::id_type desired_id);
40 static bool IsOffTheRecordSessionActive(); 40 static bool IsOffTheRecordSessionActive();
41 41
42 static const_iterator begin(); 42 static const_iterator begin();
43 static const_iterator end(); 43 static const_iterator end();
44 static bool empty(); 44 static bool empty();
45 static size_t size(); 45 static size_t size();
46 46
47 static TabModel* get(size_t index); 47 static TabModel* get(size_t index);
48 48
49 private: 49 private:
50 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList); 50 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList);
51 }; 51 };
52 52
53 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ 53 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698