OLD | NEW |
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_ANDROID_TAB_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 int GetAndroidId() const; | 102 int GetAndroidId() const; |
103 int GetSyncId() const; | 103 int GetSyncId() const; |
104 | 104 |
105 // Return the tab title. | 105 // Return the tab title. |
106 base::string16 GetTitle() const; | 106 base::string16 GetTitle() const; |
107 | 107 |
108 // Return the tab url. | 108 // Return the tab url. |
109 GURL GetURL() const; | 109 GURL GetURL() const; |
110 | 110 |
| 111 // Return whether the tab is currently visible and the user can interact with |
| 112 // it. |
| 113 bool IsUserInteractable() const; |
| 114 |
111 // Load the tab if it was unloaded from memory. | 115 // Load the tab if it was unloaded from memory. |
112 bool LoadIfNeeded(); | 116 bool LoadIfNeeded(); |
113 | 117 |
114 // Helper methods to make it easier to access objects from the associated | 118 // Helper methods to make it easier to access objects from the associated |
115 // WebContents. Can return NULL. | 119 // WebContents. Can return NULL. |
116 Profile* GetProfile() const; | 120 Profile* GetProfile() const; |
117 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; | 121 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; |
118 | 122 |
119 void SetWindowSessionID(SessionID::id_type window_id); | 123 void SetWindowSessionID(SessionID::id_type window_id); |
120 void SetSyncId(int sync_id); | 124 void SetSyncId(int sync_id); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 web_contents_delegate_; | 271 web_contents_delegate_; |
268 | 272 |
269 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; | 273 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; |
270 | 274 |
271 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 275 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
272 | 276 |
273 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 277 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
274 }; | 278 }; |
275 | 279 |
276 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 280 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |