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

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

Issue 103213015: Pass through the parent_tab_id when creating a new tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the unittest Created 6 years, 11 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 | Annotate | Revision Log
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_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sessions/session_id.h" 9 #include "chrome/browser/sessions/session_id.h"
10 #include "chrome/browser/sync/glue/synced_window_delegate.h" 10 #include "chrome/browser/sync/glue/synced_window_delegate.h"
(...skipping 29 matching lines...) Expand all
40 40
41 virtual int GetTabCount() const = 0; 41 virtual int GetTabCount() const = 0;
42 virtual int GetActiveIndex() const = 0; 42 virtual int GetActiveIndex() const = 0;
43 virtual content::WebContents* GetWebContentsAt(int index) const = 0; 43 virtual content::WebContents* GetWebContentsAt(int index) const = 0;
44 virtual TabAndroid* GetTabAt(int index) const = 0; 44 virtual TabAndroid* GetTabAt(int index) const = 0;
45 45
46 virtual void SetActiveIndex(int index) = 0; 46 virtual void SetActiveIndex(int index) = 0;
47 virtual void CloseTabAt(int index) = 0; 47 virtual void CloseTabAt(int index) = 0;
48 48
49 // Used for restoring tabs from synced foreign sessions. 49 // Used for restoring tabs from synced foreign sessions.
50 virtual void CreateTab(content::WebContents* web_contents) = 0; 50 virtual void CreateTab(content::WebContents* web_contents,
51 int parent_tab_id) = 0;
51 52
52 // Used by Developer Tools to create a new tab with a given URL. 53 // Used by Developer Tools to create a new tab with a given URL.
53 // Replaces CreateTabForTesting. 54 // Replaces CreateTabForTesting.
54 virtual content::WebContents* CreateNewTabForDevTools(const GURL& url) = 0; 55 virtual content::WebContents* CreateNewTabForDevTools(const GURL& url) = 0;
55 56
56 // Return true if we are currently restoring sessions asynchronously. 57 // Return true if we are currently restoring sessions asynchronously.
57 virtual bool IsSessionRestoreInProgress() const = 0; 58 virtual bool IsSessionRestoreInProgress() const = 0;
58 59
59 virtual void OpenClearBrowsingData() const = 0; 60 virtual void OpenClearBrowsingData() const = 0;
60 61
(...skipping 24 matching lines...) Expand all
85 // across sessions. 86 // across sessions.
86 SessionID session_id_; 87 SessionID session_id_;
87 88
88 // The Registrar used to register TabModel for notifications. 89 // The Registrar used to register TabModel for notifications.
89 content::NotificationRegistrar registrar_; 90 content::NotificationRegistrar registrar_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(TabModel); 92 DISALLOW_COPY_AND_ASSIGN(TabModel);
92 }; 93 };
93 94
94 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ 95 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_restore_android.cc ('k') | chrome/browser/ui/android/tab_model/tab_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698