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 /** |
| 21 * All UI updates related to navigation state should be notified from this m
ethod. |
| 22 */ |
| 23 @Override |
| 24 public void onNavigationStateChanged() { |
| 25 mTab.updateTitle(); |
| 26 RewindableIterator<TabObserver> observers = mTab.getTabObservers(); |
| 27 while (observers.hasNext()) { |
| 28 observers.next().onUrlUpdated(mTab); |
| 29 } |
| 30 } |
| 31 } |
OLD | NEW |