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

Side by Side Diff: chrome/browser/views/tabs/tab_overview_drag_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
« no previous file with comments | « chrome/browser/views/tabs/tab_overview_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_drag_controller.h" 5 #include "chrome/browser/views/tabs/tab_overview_drag_controller.h"
6 6
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_window.h" 8 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/dock_info.h" 9 #include "chrome/browser/dock_info.h"
10 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "chrome/browser/tabs/tab_strip_model.h" 11 #include "chrome/browser/tabs/tab_strip_model.h"
11 #include "chrome/browser/views/tabs/tab_overview_cell.h" 12 #include "chrome/browser/views/tabs/tab_overview_cell.h"
12 #include "chrome/browser/views/tabs/tab_overview_controller.h" 13 #include "chrome/browser/views/tabs/tab_overview_controller.h"
13 #include "chrome/browser/views/tabs/tab_overview_grid.h" 14 #include "chrome/browser/views/tabs/tab_overview_grid.h"
14 #include "chrome/common/notification_service.h" 15 #include "chrome/common/notification_service.h"
15 #include "views/fill_layout.h" 16 #include "views/fill_layout.h"
16 #include "views/view.h" 17 #include "views/view.h"
17 #include "views/widget/root_view.h" 18 #include "views/widget/root_view.h"
18 #include "views/widget/widget_gtk.h" 19 #include "views/widget/widget_gtk.h"
19 20
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 Source<TabContents>(tab)); 391 Source<TabContents>(tab));
391 392
392 // We need to be the delegate so we receive messages about stuff, 393 // We need to be the delegate so we receive messages about stuff,
393 // otherwise our dragged contents may be replaced and subsequently 394 // otherwise our dragged contents may be replaced and subsequently
394 // collected/destroyed while the drag is in process, leading to 395 // collected/destroyed while the drag is in process, leading to
395 // nasty crashes. 396 // nasty crashes.
396 original_delegate_ = tab->delegate(); 397 original_delegate_ = tab->delegate();
397 tab->set_delegate(this); 398 tab->set_delegate(this);
398 } 399 }
399 } 400 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_overview_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698