OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/frame/browser_view_layout.h" | 5 #include "chrome/browser/ui/views/frame/browser_view_layout.h" |
6 | 6 |
7 #include "chrome/browser/sidebar/sidebar_manager.h" | 7 #include "chrome/browser/sidebar/sidebar_manager.h" |
8 #include "chrome/browser/ui/find_bar/find_bar.h" | 8 #include "chrome/browser/ui/find_bar/find_bar.h" |
9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
10 #include "chrome/browser/ui/view_ids.h" | 10 #include "chrome/browser/ui/view_ids.h" |
11 #include "chrome/browser/ui/views/bookmark_bar_view.h" | 11 #include "chrome/browser/ui/views/bookmark_bar_view.h" |
12 #include "chrome/browser/ui/views/download_shelf_view.h" | 12 #include "chrome/browser/ui/views/download_shelf_view.h" |
13 #include "chrome/browser/ui/views/frame/browser_frame.h" | 13 #include "chrome/browser/ui/views/frame/browser_frame.h" |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 14 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "chrome/browser/ui/views/frame/contents_container.h" | 15 #include "chrome/browser/ui/views/frame/contents_container.h" |
16 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 16 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
17 #include "chrome/browser/ui/views/tabs/side_tab_strip.h" | 17 #include "chrome/browser/ui/views/tabs/side_tab_strip.h" |
18 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 18 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
19 #include "chrome/browser/ui/views/toolbar_view.h" | 19 #include "chrome/browser/ui/views/toolbar_view.h" |
20 #include "gfx/scrollbar_size.h" | 20 #include "ui/gfx/point.h" |
21 #include "gfx/point.h" | 21 #include "ui/gfx/scrollbar_size.h" |
22 #include "gfx/size.h" | 22 #include "ui/gfx/size.h" |
23 #include "views/controls/single_split_view.h" | 23 #include "views/controls/single_split_view.h" |
24 #include "views/window/window.h" | 24 #include "views/window/window.h" |
25 | 25 |
26 #if defined(OS_LINUX) | 26 #if defined(OS_LINUX) |
27 #include "views/window/hit_test.h" | 27 #include "views/window/hit_test.h" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // The visible height of the shadow above the tabs. Clicks in this area are | 32 // The visible height of the shadow above the tabs. Clicks in this area are |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 bottom -= height; | 515 bottom -= height; |
516 } | 516 } |
517 return bottom; | 517 return bottom; |
518 } | 518 } |
519 | 519 |
520 bool BrowserViewLayout::InfobarVisible() const { | 520 bool BrowserViewLayout::InfobarVisible() const { |
521 // NOTE: Can't check if the size IsEmpty() since it's always 0-width. | 521 // NOTE: Can't check if the size IsEmpty() since it's always 0-width. |
522 return browser()->SupportsWindowFeature(Browser::FEATURE_INFOBAR) && | 522 return browser()->SupportsWindowFeature(Browser::FEATURE_INFOBAR) && |
523 (infobar_container_->GetPreferredSize().height() != 0); | 523 (infobar_container_->GetPreferredSize().height() != 0); |
524 } | 524 } |
OLD | NEW |