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/tabs/tab_overview_controller.h" | 5 #include "chrome/browser/views/tabs/tab_overview_controller.h" |
6 | 6 |
7 #include "chrome/browser/browser.h" | 7 #include "chrome/browser/browser.h" |
8 #include "chrome/browser/gtk/browser_window_gtk.h" | 8 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" |
9 #include "chrome/browser/views/tabs/tab_overview_cell.h" | 10 #include "chrome/browser/views/tabs/tab_overview_cell.h" |
10 #include "chrome/browser/views/tabs/tab_overview_container.h" | 11 #include "chrome/browser/views/tabs/tab_overview_container.h" |
11 #include "chrome/browser/views/tabs/tab_overview_grid.h" | 12 #include "chrome/browser/views/tabs/tab_overview_grid.h" |
12 #include "chrome/browser/window_sizer.h" | 13 #include "chrome/browser/window_sizer.h" |
13 #include "views/fill_layout.h" | 14 #include "views/fill_layout.h" |
14 #include "views/widget/root_view.h" | 15 #include "views/widget/root_view.h" |
15 #include "views/widget/widget_gtk.h" | 16 #include "views/widget/widget_gtk.h" |
16 | 17 |
17 static int kMonitorPadding = 20; | 18 static int kMonitorPadding = 20; |
18 static int kInteriorPadding = 20; | 19 static int kInteriorPadding = 20; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 host_->SetBounds(gfx::Rect(x, y, pref.width(), pref.height())); | 198 host_->SetBounds(gfx::Rect(x, y, pref.width(), pref.height())); |
198 | 199 |
199 container_->UpdateWidgetShape(pref.width(), pref.height()); | 200 container_->UpdateWidgetShape(pref.width(), pref.height()); |
200 if (grid()->GetChildViewCount() > 0) { | 201 if (grid()->GetChildViewCount() > 0) { |
201 if (shown_) | 202 if (shown_) |
202 host_->Show(); | 203 host_->Show(); |
203 } else { | 204 } else { |
204 host_->Hide(); | 205 host_->Hide(); |
205 } | 206 } |
206 } | 207 } |
OLD | NEW |