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_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/sync/glue/synced_window_delegate.h" | 9 #include "chrome/browser/sync/glue/synced_window_delegate.h" |
10 #include "components/sessions/session_id.h" | 10 #include "components/sessions/session_id.h" |
11 | 11 |
12 class TabModel; | 12 class TabModel; |
13 | 13 |
14 namespace browser_sync { | 14 namespace browser_sync { |
15 | 15 |
16 class SyncedTabDelegate; | 16 class SyncedTabDelegate; |
17 | 17 |
18 class SyncedWindowDelegateAndroid : public browser_sync::SyncedWindowDelegate { | 18 class SyncedWindowDelegateAndroid : public browser_sync::SyncedWindowDelegate { |
19 public: | 19 public: |
20 explicit SyncedWindowDelegateAndroid(TabModel* tab_model); | 20 explicit SyncedWindowDelegateAndroid(TabModel* tab_model); |
21 virtual ~SyncedWindowDelegateAndroid(); | 21 virtual ~SyncedWindowDelegateAndroid(); |
22 | 22 |
23 // browser_sync::SyncedWindowDelegate implementation. | 23 // browser_sync::SyncedWindowDelegate implementation. |
24 | 24 |
25 virtual bool HasWindow() const OVERRIDE; | 25 virtual bool HasWindow() const override; |
26 virtual SessionID::id_type GetSessionId() const OVERRIDE; | 26 virtual SessionID::id_type GetSessionId() const override; |
27 virtual int GetTabCount() const OVERRIDE; | 27 virtual int GetTabCount() const override; |
28 virtual int GetActiveIndex() const OVERRIDE; | 28 virtual int GetActiveIndex() const override; |
29 virtual bool IsApp() const OVERRIDE; | 29 virtual bool IsApp() const override; |
30 virtual bool IsTypeTabbed() const OVERRIDE; | 30 virtual bool IsTypeTabbed() const override; |
31 virtual bool IsTypePopup() const OVERRIDE; | 31 virtual bool IsTypePopup() const override; |
32 virtual bool IsTabPinned(const SyncedTabDelegate* tab) const OVERRIDE; | 32 virtual bool IsTabPinned(const SyncedTabDelegate* tab) const override; |
33 virtual SyncedTabDelegate* GetTabAt(int index) const OVERRIDE; | 33 virtual SyncedTabDelegate* GetTabAt(int index) const override; |
34 virtual SessionID::id_type GetTabIdAt(int index) const OVERRIDE; | 34 virtual SessionID::id_type GetTabIdAt(int index) const override; |
35 virtual bool IsSessionRestoreInProgress() const OVERRIDE; | 35 virtual bool IsSessionRestoreInProgress() const override; |
36 | 36 |
37 private: | 37 private: |
38 TabModel* tab_model_; | 38 TabModel* tab_model_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegateAndroid); | 40 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegateAndroid); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace browser_sync | 43 } // namespace browser_sync |
44 | 44 |
45 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ | 45 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_ANDROID_H_ |
OLD | NEW |