OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 frame_->GetWindow()->UpdateWindowTitle(); | 661 frame_->GetWindow()->UpdateWindowTitle(); |
662 if (ShouldShowWindowIcon()) | 662 if (ShouldShowWindowIcon()) |
663 frame_->GetWindow()->UpdateWindowIcon(); | 663 frame_->GetWindow()->UpdateWindowIcon(); |
664 } | 664 } |
665 | 665 |
666 void BrowserView::UpdateDevTools() { | 666 void BrowserView::UpdateDevTools() { |
667 UpdateDevToolsForContents(GetSelectedTabContents()); | 667 UpdateDevToolsForContents(GetSelectedTabContents()); |
668 Layout(); | 668 Layout(); |
669 } | 669 } |
670 | 670 |
| 671 void BrowserView::FocusDevTools() { |
| 672 if (devtools_container_->IsVisible()) |
| 673 GetRootView()->FocusView(devtools_container_->GetFocusView()); |
| 674 } |
| 675 |
671 void BrowserView::UpdateLoadingAnimations(bool should_animate) { | 676 void BrowserView::UpdateLoadingAnimations(bool should_animate) { |
672 if (should_animate) { | 677 if (should_animate) { |
673 if (!loading_animation_timer_.IsRunning()) { | 678 if (!loading_animation_timer_.IsRunning()) { |
674 // Loads are happening, and the timer isn't running, so start it. | 679 // Loads are happening, and the timer isn't running, so start it. |
675 loading_animation_timer_.Start( | 680 loading_animation_timer_.Start( |
676 TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, | 681 TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, |
677 &BrowserView::LoadingAnimationCallback); | 682 &BrowserView::LoadingAnimationCallback); |
678 } | 683 } |
679 } else { | 684 } else { |
680 if (loading_animation_timer_.IsRunning()) { | 685 if (loading_animation_timer_.IsRunning()) { |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 | 1896 |
1892 // static | 1897 // static |
1893 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1898 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
1894 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1899 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
1895 } | 1900 } |
1896 | 1901 |
1897 // static | 1902 // static |
1898 void BrowserList::AllBrowsersClosed() { | 1903 void BrowserList::AllBrowsersClosed() { |
1899 views::Window::CloseAllSecondaryWindows(); | 1904 views::Window::CloseAllSecondaryWindows(); |
1900 } | 1905 } |
OLD | NEW |