| 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/gtk/tabs/drag_data.h" | 5 #include "chrome/browser/ui/gtk/tabs/drag_data.h" |
| 6 | 6 |
| 7 #include "chrome/browser/tabs/tab_strip_model.h" | 7 #include "chrome/browser/tabs/tab_strip_model.h" |
| 8 #include "chrome/browser/ui/gtk/tabs/tab_gtk.h" | 8 #include "chrome/browser/ui/gtk/tabs/tab_gtk.h" |
| 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 10 #include "content/browser/tab_contents/tab_contents.h" |
| 10 #include "content/browser/tab_contents/tab_contents_delegate.h" | 11 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 11 | 12 |
| 12 DraggedTabData::DraggedTabData() | 13 DraggedTabData::DraggedTabData() |
| 13 : tab_(NULL), | 14 : tab_(NULL), |
| 14 contents_(NULL), | 15 contents_(NULL), |
| 15 original_delegate_(NULL), | 16 original_delegate_(NULL), |
| 16 source_model_index_(-1), | 17 source_model_index_(-1), |
| 17 pinned_(false), | 18 pinned_(false), |
| 18 mini_(false) { | 19 mini_(false) { |
| 19 } | 20 } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return GetSourceTabData()->contents_; | 97 return GetSourceTabData()->contents_; |
| 97 } | 98 } |
| 98 | 99 |
| 99 TabContents* DragData::GetSourceTabContents() { | 100 TabContents* DragData::GetSourceTabContents() { |
| 100 return GetSourceTabData()->contents_->tab_contents(); | 101 return GetSourceTabData()->contents_->tab_contents(); |
| 101 } | 102 } |
| 102 | 103 |
| 103 DraggedTabData* DragData::GetSourceTabData() { | 104 DraggedTabData* DragData::GetSourceTabData() { |
| 104 return get(source_tab_index_); | 105 return get(source_tab_index_); |
| 105 } | 106 } |
| OLD | NEW |