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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 switches::kDisableHangMonitor)) { | 1392 switches::kDisableHangMonitor)) { |
1393 InitHangMonitor(); | 1393 InitHangMonitor(); |
1394 } | 1394 } |
1395 | 1395 |
1396 LoadAccelerators(); | 1396 LoadAccelerators(); |
1397 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); | 1397 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); |
1398 | 1398 |
1399 tabstrip_ = new TabStrip(browser_->tabstrip_model()); | 1399 tabstrip_ = new TabStrip(browser_->tabstrip_model()); |
1400 tabstrip_->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_TABSTRIP)); | 1400 tabstrip_->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_TABSTRIP)); |
1401 AddChildView(tabstrip_); | 1401 AddChildView(tabstrip_); |
| 1402 tabstrip_->InitTabStripButtons(); |
1402 frame_->TabStripCreated(tabstrip_); | 1403 frame_->TabStripCreated(tabstrip_); |
1403 | 1404 |
1404 toolbar_ = new ToolbarView(browser_.get()); | 1405 toolbar_ = new ToolbarView(browser_.get()); |
1405 AddChildView(toolbar_); | 1406 AddChildView(toolbar_); |
1406 toolbar_->SetID(VIEW_ID_TOOLBAR); | 1407 toolbar_->SetID(VIEW_ID_TOOLBAR); |
1407 toolbar_->Init(browser_->profile()); | 1408 toolbar_->Init(browser_->profile()); |
1408 toolbar_->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_TOOLBAR)); | 1409 toolbar_->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_TOOLBAR)); |
1409 | 1410 |
1410 infobar_container_ = new InfoBarContainer(this); | 1411 infobar_container_ = new InfoBarContainer(this); |
1411 AddChildView(infobar_container_); | 1412 AddChildView(infobar_container_); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 | 1813 |
1813 // static | 1814 // static |
1814 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1815 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
1815 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1816 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
1816 } | 1817 } |
1817 | 1818 |
1818 // static | 1819 // static |
1819 void BrowserList::AllBrowsersClosed() { | 1820 void BrowserList::AllBrowsersClosed() { |
1820 views::Window::CloseAllSecondaryWindows(); | 1821 views::Window::CloseAllSecondaryWindows(); |
1821 } | 1822 } |
OLD | NEW |