OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dragged_tab_controller.h" | 5 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "app/animation.h" | 10 #include "app/animation.h" |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 if (original_delegate_) { | 422 if (original_delegate_) { |
423 original_delegate_->AddNewContents(source, new_contents, disposition, | 423 original_delegate_->AddNewContents(source, new_contents, disposition, |
424 initial_pos, user_gesture); | 424 initial_pos, user_gesture); |
425 } | 425 } |
426 } | 426 } |
427 | 427 |
428 void DraggedTabController::ActivateContents(TabContents* contents) { | 428 void DraggedTabController::ActivateContents(TabContents* contents) { |
429 // Ignored. | 429 // Ignored. |
430 } | 430 } |
431 | 431 |
432 void DraggedTabController::DeactivateContents(TabContents* contents) { | |
433 // Ignored. | |
434 } | |
435 | |
436 void DraggedTabController::LoadingStateChanged(TabContents* source) { | 432 void DraggedTabController::LoadingStateChanged(TabContents* source) { |
437 // It would be nice to respond to this message by changing the | 433 // It would be nice to respond to this message by changing the |
438 // screen shot in the dragged tab. | 434 // screen shot in the dragged tab. |
439 if (view_.get()) | 435 if (view_.get()) |
440 view_->Update(); | 436 view_->Update(); |
441 } | 437 } |
442 | 438 |
443 void DraggedTabController::CloseContents(TabContents* source) { | 439 void DraggedTabController::CloseContents(TabContents* source) { |
444 // Theoretically could be called by a window. Should be ignored | 440 // Theoretically could be called by a window. Should be ignored |
445 // because window.close() is ignored (usually, even though this | 441 // because window.close() is ignored (usually, even though this |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 #else | 1328 #else |
1333 NOTIMPLEMENTED(); | 1329 NOTIMPLEMENTED(); |
1334 #endif | 1330 #endif |
1335 } | 1331 } |
1336 } | 1332 } |
1337 | 1333 |
1338 TabStripModel* DraggedTabController::GetModel(BaseTabStrip* tabstrip) const { | 1334 TabStripModel* DraggedTabController::GetModel(BaseTabStrip* tabstrip) const { |
1339 return static_cast<BrowserTabStripController*>(tabstrip->controller())-> | 1335 return static_cast<BrowserTabStripController*>(tabstrip->controller())-> |
1340 model(); | 1336 model(); |
1341 } | 1337 } |
OLD | NEW |