Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: chrome/browser/views/tabs/tab_overview_controller.cc

Issue 125145: Implement the default tab opening behavior. Fix some linux build issues by adding missing includes. (Closed)
Patch Set: Missing include Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.cc ('k') | chrome/browser/views/tabs/tab_overview_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698