| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 int GetAndroidId() const; | 91 int GetAndroidId() const; |
| 92 int GetSyncId() const; | 92 int GetSyncId() const; |
| 93 | 93 |
| 94 // Return the tab title. | 94 // Return the tab title. |
| 95 base::string16 GetTitle() const; | 95 base::string16 GetTitle() const; |
| 96 | 96 |
| 97 // Return the tab url. | 97 // Return the tab url. |
| 98 GURL GetURL() const; | 98 GURL GetURL() const; |
| 99 | 99 |
| 100 // Return whether the tab is currently visible and the user can interact with |
| 101 // it. |
| 102 bool IsUserInteractable() const; |
| 103 |
| 100 // Load the tab if it was unloaded from memory. | 104 // Load the tab if it was unloaded from memory. |
| 101 bool LoadIfNeeded(); | 105 bool LoadIfNeeded(); |
| 102 | 106 |
| 103 // Helper methods to make it easier to access objects from the associated | 107 // Helper methods to make it easier to access objects from the associated |
| 104 // WebContents. Can return NULL. | 108 // WebContents. Can return NULL. |
| 105 Profile* GetProfile() const; | 109 Profile* GetProfile() const; |
| 106 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; | 110 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; |
| 107 | 111 |
| 108 void SetWindowSessionID(SessionID::id_type window_id); | 112 void SetWindowSessionID(SessionID::id_type window_id); |
| 109 void SetSyncId(int sync_id); | 113 void SetSyncId(int sync_id); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 std::unique_ptr<content::WebContents> web_contents_; | 253 std::unique_ptr<content::WebContents> web_contents_; |
| 250 std::unique_ptr<android::TabWebContentsDelegateAndroid> | 254 std::unique_ptr<android::TabWebContentsDelegateAndroid> |
| 251 web_contents_delegate_; | 255 web_contents_delegate_; |
| 252 | 256 |
| 253 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 257 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 254 | 258 |
| 255 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 259 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 262 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |