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

Side by Side Diff: chrome/browser/ui/gtk/tabs/drag_data.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/html_dialog_gtk.cc ('k') | chrome/browser/ui/intents/web_intent_picker_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698