Index: chrome/browser/ui/android/tab_model/tab_model_android.cc |
diff --git a/chrome/browser/ui/android/tab_model/tab_model_android.cc b/chrome/browser/ui/android/tab_model/tab_model_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..16bd86053609062c4f4660426572e191eebabefc |
--- /dev/null |
+++ b/chrome/browser/ui/android/tab_model/tab_model_android.cc |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/ui/android/tab_model/tab_model_android.h" |
+ |
+#include "chrome/browser/sync/glue/synced_window_delegate_android.h" |
+#include "chrome/common/chrome_notification_types.h" |
+#include "content/public/browser/notification_service.h" |
+ |
+using content::NotificationService; |
+ |
+TabModelAndroid::TabModelAndroid() |
sky
2012/07/17 00:32:12
The order of definitions should match declarations
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
|
+ : synced_window_delegate_(new browser_sync::SyncedWindowDelegateAndroid( |
+ this)) { } |
sky
2012/07/17 00:32:12
{ } -> {} every where.
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
|
+ |
+TabModelAndroid::~TabModelAndroid() { } |
+ |
+void TabModelAndroid::BroadcastAllTabsLoaded() { |
+ NotificationService::current()->Notify( |
+ chrome::NOTIFICATION_ALL_TABS_LOADED, |
+ NotificationService::AllSources(), |
+ NotificationService::NoDetails()); |
+} |
+ |
+browser_sync::SyncedWindowDelegate* |
+TabModelAndroid::synced_window_delegate() const { |
+ return synced_window_delegate_.get(); |
+} |