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

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

Issue 2479683006: [Sync] Add support for identifying tabbed activites (Closed)
Patch Set: Rename proto Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_JNI_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 const base::android::JavaParamRef<jobject>& obj); 40 const base::android::JavaParamRef<jobject>& obj);
41 void TabAddedToModel(JNIEnv* env, 41 void TabAddedToModel(JNIEnv* env,
42 const base::android::JavaParamRef<jobject>& obj, 42 const base::android::JavaParamRef<jobject>& obj,
43 const base::android::JavaParamRef<jobject>& jtab); 43 const base::android::JavaParamRef<jobject>& jtab);
44 44
45 // TabModel:: 45 // TabModel::
46 int GetTabCount() const override; 46 int GetTabCount() const override;
47 int GetActiveIndex() const override; 47 int GetActiveIndex() const override;
48 content::WebContents* GetWebContentsAt(int index) const override; 48 content::WebContents* GetWebContentsAt(int index) const override;
49 TabAndroid* GetTabAt(int index) const override; 49 TabAndroid* GetTabAt(int index) const override;
50 bool IsTabbedActivity() const override;
50 51
51 void SetActiveIndex(int index) override; 52 void SetActiveIndex(int index) override;
52 void CloseTabAt(int index) override; 53 void CloseTabAt(int index) override;
53 54
54 void CreateTab(TabAndroid* parent, 55 void CreateTab(TabAndroid* parent,
55 content::WebContents* web_contents, 56 content::WebContents* web_contents,
56 int parent_tab_id) override; 57 int parent_tab_id) override;
57 58
58 content::WebContents* CreateNewTabForDevTools(const GURL& url) override; 59 content::WebContents* CreateNewTabForDevTools(const GURL& url) override;
59 60
60 // Return true if we are currently restoring sessions asynchronously. 61 // Return true if we are currently restoring sessions asynchronously.
61 bool IsSessionRestoreInProgress() const override; 62 bool IsSessionRestoreInProgress() const override;
62 63
63 // Instructs the TabModel to broadcast a notification that all tabs are now 64 // Instructs the TabModel to broadcast a notification that all tabs are now
64 // loaded from storage. 65 // loaded from storage.
65 void BroadcastSessionRestoreComplete( 66 void BroadcastSessionRestoreComplete(
66 JNIEnv* env, 67 JNIEnv* env,
67 const base::android::JavaParamRef<jobject>& obj); 68 const base::android::JavaParamRef<jobject>& obj);
68 69
69 protected: 70 protected:
70 JavaObjectWeakGlobalRef java_object_; 71 JavaObjectWeakGlobalRef java_object_;
71 72
72 private: 73 private:
73 DISALLOW_COPY_AND_ASSIGN(TabModelJniBridge); 74 DISALLOW_COPY_AND_ASSIGN(TabModelJniBridge);
74 }; 75 };
75 76
76 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ 77 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698