OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/android/tab_model/tab_model_android.h" | |
6 | |
7 #include "chrome/browser/sync/glue/synced_window_delegate_android.h" | |
8 #include "chrome/common/chrome_notification_types.h" | |
9 #include "content/public/browser/notification_service.h" | |
10 | |
11 using content::NotificationService; | |
12 | |
13 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.
| |
14 : synced_window_delegate_(new browser_sync::SyncedWindowDelegateAndroid( | |
15 this)) { } | |
sky
2012/07/17 00:32:12
{ } -> {} every where.
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
| |
16 | |
17 TabModelAndroid::~TabModelAndroid() { } | |
18 | |
19 void TabModelAndroid::BroadcastAllTabsLoaded() { | |
20 NotificationService::current()->Notify( | |
21 chrome::NOTIFICATION_ALL_TABS_LOADED, | |
22 NotificationService::AllSources(), | |
23 NotificationService::NoDetails()); | |
24 } | |
25 | |
26 browser_sync::SyncedWindowDelegate* | |
27 TabModelAndroid::synced_window_delegate() const { | |
28 return synced_window_delegate_.get(); | |
29 } | |
OLD | NEW |