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

Side by Side Diff: chrome/browser/views/tabs/dragged_tab_controller.cc

Issue 3201008: Revert 57094 - Making window.focus()/blur() work only when there is a user ge... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.h ('k') | chrome/renderer/render_view.h » ('j') | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698