Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/views/frame/browser_view.h" | 5 #include "chrome/browser/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 785 contents_split_->Layout(); | 785 contents_split_->Layout(); |
| 786 } | 786 } |
| 787 } | 787 } |
| 788 | 788 |
| 789 void BrowserView::SelectedTabExtensionShelfSizeChanged() { | 789 void BrowserView::SelectedTabExtensionShelfSizeChanged() { |
| 790 Layout(); | 790 Layout(); |
| 791 } | 791 } |
| 792 | 792 |
| 793 void BrowserView::UpdateTitleBar() { | 793 void BrowserView::UpdateTitleBar() { |
| 794 frame_->GetWindow()->UpdateWindowTitle(); | 794 frame_->GetWindow()->UpdateWindowTitle(); |
| 795 if (ShouldShowWindowIcon()) | 795 if (ShouldShowWindowIcon() && !loading_animation_timer_.IsRunning()) |
|
Ben Goodger (Google)
2009/11/24 20:54:31
Does this mean no tab can update its favicon while
xiyuan
2009/11/24 21:05:05
Tab's favicon update in tab strip should not be af
| |
| 796 frame_->GetWindow()->UpdateWindowIcon(); | 796 frame_->GetWindow()->UpdateWindowIcon(); |
| 797 browser_extender_->UpdateTitleBar(); | 797 browser_extender_->UpdateTitleBar(); |
| 798 } | 798 } |
| 799 | 799 |
| 800 void BrowserView::ShelfVisibilityChanged() { | 800 void BrowserView::ShelfVisibilityChanged() { |
| 801 Layout(); | 801 Layout(); |
| 802 } | 802 } |
| 803 | 803 |
| 804 void BrowserView::UpdateDevTools() { | 804 void BrowserView::UpdateDevTools() { |
| 805 UpdateDevToolsForContents(GetSelectedTabContents()); | 805 UpdateDevToolsForContents(GetSelectedTabContents()); |
| (...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2281 | 2281 |
| 2282 // static | 2282 // static |
| 2283 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 2283 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 2284 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 2284 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
| 2285 } | 2285 } |
| 2286 | 2286 |
| 2287 // static | 2287 // static |
| 2288 void BrowserList::AllBrowsersClosed() { | 2288 void BrowserList::AllBrowsersClosed() { |
| 2289 views::Window::CloseAllSecondaryWindows(); | 2289 views::Window::CloseAllSecondaryWindows(); |
| 2290 } | 2290 } |
| OLD | NEW |