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

Side by Side Diff: chrome/browser/external_tab_container_win.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, 3 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
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/external_tab_container_win.h" 5 #include "chrome/browser/external_tab_container_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 RegisterRenderViewHostForAutomation(rvh, true); 396 RegisterRenderViewHostForAutomation(rvh, true);
397 } 397 }
398 398
399 bool ExternalTabContainer::infobars_enabled() { 399 bool ExternalTabContainer::infobars_enabled() {
400 return infobars_enabled_; 400 return infobars_enabled_;
401 } 401 }
402 402
403 void ExternalTabContainer::ActivateContents(TabContents* contents) { 403 void ExternalTabContainer::ActivateContents(TabContents* contents) {
404 } 404 }
405 405
406 void ExternalTabContainer::DeactivateContents(TabContents* contents) {
407 }
408
409 void ExternalTabContainer::LoadingStateChanged(TabContents* source) { 406 void ExternalTabContainer::LoadingStateChanged(TabContents* source) {
410 } 407 }
411 408
412 void ExternalTabContainer::CloseContents(TabContents* source) { 409 void ExternalTabContainer::CloseContents(TabContents* source) {
413 static const int kExternalTabCloseContentsDelayMS = 100; 410 static const int kExternalTabCloseContentsDelayMS = 100;
414 411
415 if (waiting_for_unload_event_) { 412 if (waiting_for_unload_event_) {
416 PostMessage(notification_window_, notification_message_, 0, 0); 413 PostMessage(notification_window_, notification_message_, 0, 0);
417 waiting_for_unload_event_ = false; 414 waiting_for_unload_event_ = false;
418 } else { 415 } else {
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 external_tab_view_->SetLayoutManager(layout); 975 external_tab_view_->SetLayoutManager(layout);
979 976
980 layout->StartRow(0, 0); 977 layout->StartRow(0, 0);
981 layout->AddView(info_bar_container); 978 layout->AddView(info_bar_container);
982 layout->StartRow(1, 0); 979 layout->StartRow(1, 0);
983 layout->AddView(tab_contents_container_); 980 layout->AddView(tab_contents_container_);
984 SetContentsView(external_tab_view_); 981 SetContentsView(external_tab_view_);
985 // Note that SetTabContents must be called after AddChildView is called 982 // Note that SetTabContents must be called after AddChildView is called
986 tab_contents_container_->ChangeTabContents(tab_contents_); 983 tab_contents_container_->ChangeTabContents(tab_contents_);
987 } 984 }
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.h ('k') | chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698