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

Side by Side Diff: chrome/browser/views/blocked_popup_container.cc

Issue 10973: Test the feasibility of turning Chrome into a multi-process ActiveX control Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "chrome/browser/views/blocked_popup_container.h" 5 #include "chrome/browser/views/blocked_popup_container.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "chrome/app/theme/theme_resources.h" 9 #include "chrome/app/theme/theme_resources.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 it->second = pos; 433 it->second = pos;
434 break; 434 break;
435 } 435 }
436 } 436 }
437 } 437 }
438 438
439 bool BlockedPopupContainer::IsPopup(TabContents* source) { 439 bool BlockedPopupContainer::IsPopup(TabContents* source) {
440 return true; 440 return true;
441 } 441 }
442 442
443 bool BlockedPopupContainer::IsEmbedded(TabContents* source) {
444 return false;
445 }
446
443 TabContents* BlockedPopupContainer::GetConstrainingContents( 447 TabContents* BlockedPopupContainer::GetConstrainingContents(
444 TabContents* source) { 448 TabContents* source) {
445 return owner_; 449 return owner_;
446 } 450 }
447 451
448 //////////////////////////////////////////////////////////////////////////////// 452 ////////////////////////////////////////////////////////////////////////////////
449 // Override from Animation: 453 // Override from Animation:
450 void BlockedPopupContainer::AnimateToState(double state) { 454 void BlockedPopupContainer::AnimateToState(double state) {
451 if (in_show_animation_) 455 if (in_show_animation_)
452 visibility_percentage_ = state; 456 visibility_percentage_ = state;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 534
531 void BlockedPopupContainer::CloseEachTabContents() { 535 void BlockedPopupContainer::CloseEachTabContents() {
532 while (!blocked_popups_.empty()) { 536 while (!blocked_popups_.empty()) {
533 blocked_popups_.back().first->set_delegate(NULL); 537 blocked_popups_.back().first->set_delegate(NULL);
534 blocked_popups_.back().first->CloseContents(); 538 blocked_popups_.back().first->CloseContents();
535 blocked_popups_.pop_back(); 539 blocked_popups_.pop_back();
536 } 540 }
537 541
538 blocked_popups_.clear(); 542 blocked_popups_.clear();
539 } 543 }
OLDNEW
« no previous file with comments | « chrome/browser/views/blocked_popup_container.h ('k') | chrome/browser/views/browser_views.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698