| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <math.h> | 5 #include <math.h> |
| 6 | 6 |
| 7 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 7 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
| 8 | 8 |
| 9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/frame_util.h" | 10 #include "chrome/browser/frame_util.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void DraggedTabController::MoveContents(TabContents* source, | 271 void DraggedTabController::MoveContents(TabContents* source, |
| 272 const gfx::Rect& pos) { | 272 const gfx::Rect& pos) { |
| 273 // Theoretically could be called by a web page trying to move its | 273 // Theoretically could be called by a web page trying to move its |
| 274 // own window. Should be ignored since we're moving the window... | 274 // own window. Should be ignored since we're moving the window... |
| 275 } | 275 } |
| 276 | 276 |
| 277 bool DraggedTabController::IsPopup(TabContents* source) { | 277 bool DraggedTabController::IsPopup(TabContents* source) { |
| 278 return false; | 278 return false; |
| 279 } | 279 } |
| 280 | 280 |
| 281 bool DraggedTabController::IsEmbedded(TabContents* source) { |
| 282 return false; |
| 283 } |
| 284 |
| 281 void DraggedTabController::ToolbarSizeChanged(TabContents* source, | 285 void DraggedTabController::ToolbarSizeChanged(TabContents* source, |
| 282 bool finished) { | 286 bool finished) { |
| 283 // Dragged tabs don't care about this. | 287 // Dragged tabs don't care about this. |
| 284 } | 288 } |
| 285 | 289 |
| 286 void DraggedTabController::URLStarredChanged(TabContents* source, | 290 void DraggedTabController::URLStarredChanged(TabContents* source, |
| 287 bool starred) { | 291 bool starred) { |
| 288 // Ignored. | 292 // Ignored. |
| 289 } | 293 } |
| 290 | 294 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 Tab* tab = GetTabMatchingDraggedContents(attached_tabstrip_); | 837 Tab* tab = GetTabMatchingDraggedContents(attached_tabstrip_); |
| 834 if (tab) | 838 if (tab) |
| 835 tab->SetVisible(true); | 839 tab->SetVisible(true); |
| 836 } | 840 } |
| 837 CleanUpHiddenFrame(); | 841 CleanUpHiddenFrame(); |
| 838 | 842 |
| 839 if (!in_destructor_) | 843 if (!in_destructor_) |
| 840 source_tabstrip_->DestroyDragController(); | 844 source_tabstrip_->DestroyDragController(); |
| 841 } | 845 } |
| 842 | 846 |
| OLD | NEW |