OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 package org.chromium.chrome.browser.tab; | |
6 | |
7 import org.chromium.base.ObserverList.RewindableIterator; | |
8 import org.chromium.blimp_public.contents.BlimpContentsObserver; | |
9 | |
10 /** | |
11 * BlimpContentsObserver used by Tab. | |
12 */ | |
13 public class TabBlimpContentsObserver implements BlimpContentsObserver { | |
14 private Tab mTab; | |
15 | |
16 public TabBlimpContentsObserver(Tab tab) { | |
17 mTab = tab; | |
18 } | |
19 | |
20 @Override | |
21 public void onNavigationStateChanged() { | |
David Trainor- moved to gerrit
2016/08/18 17:06:30
Can you put a comment that we want to notify all U
shaktisahu
2016/08/18 19:36:06
Done.
| |
22 mTab.updateTitle(); | |
23 RewindableIterator<TabObserver> observers = mTab.getTabObservers(); | |
24 while (observers.hasNext()) { | |
25 observers.next().onUrlUpdated(mTab); | |
26 } | |
27 } | |
28 } | |
OLD | NEW |