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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 // HTCAPTION. | 1189 // HTCAPTION. |
1190 bv_bounds = bounds(); | 1190 bv_bounds = bounds(); |
1191 bv_bounds.set_height(toolbar_->y()); | 1191 bv_bounds.set_height(toolbar_->y()); |
1192 if (bv_bounds.Contains(point)) | 1192 if (bv_bounds.Contains(point)) |
1193 return HTNOWHERE; | 1193 return HTNOWHERE; |
1194 | 1194 |
1195 // If the point is somewhere else, delegate to the default implementation. | 1195 // If the point is somewhere else, delegate to the default implementation. |
1196 return views::ClientView::NonClientHitTest(point); | 1196 return views::ClientView::NonClientHitTest(point); |
1197 #else | 1197 #else |
1198 NOTIMPLEMENTED(); | 1198 NOTIMPLEMENTED(); |
| 1199 return 0; |
1199 #endif | 1200 #endif |
1200 } | 1201 } |
1201 | 1202 |
1202 gfx::Size BrowserView::GetMinimumSize() { | 1203 gfx::Size BrowserView::GetMinimumSize() { |
1203 // TODO: In theory the tabstrip width should probably be | 1204 // TODO: In theory the tabstrip width should probably be |
1204 // (OTR + tabstrip + caption buttons) width. | 1205 // (OTR + tabstrip + caption buttons) width. |
1205 gfx::Size tabstrip_size( | 1206 gfx::Size tabstrip_size( |
1206 browser_->SupportsWindowFeature(Browser::FEATURE_TABSTRIP) ? | 1207 browser_->SupportsWindowFeature(Browser::FEATURE_TABSTRIP) ? |
1207 tabstrip_->GetMinimumSize() : gfx::Size()); | 1208 tabstrip_->GetMinimumSize() : gfx::Size()); |
1208 gfx::Size toolbar_size( | 1209 gfx::Size toolbar_size( |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 | 1718 |
1718 // static | 1719 // static |
1719 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1720 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
1720 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1721 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
1721 } | 1722 } |
1722 | 1723 |
1723 // static | 1724 // static |
1724 void BrowserList::AllBrowsersClosed() { | 1725 void BrowserList::AllBrowsersClosed() { |
1725 views::Window::CloseAllSecondaryWindows(); | 1726 views::Window::CloseAllSecondaryWindows(); |
1726 } | 1727 } |
OLD | NEW |