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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 1247004: Revert 42474 - Make repost form warning tabmodal on Gtk.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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/gtk/repost_form_warning_gtk.cc ('k') | no next file » | 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "app/text_elider.h" 9 #include "app/text_elider.h"
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 if (tab_contents && tab_contents->delegate()) 1084 if (tab_contents && tab_contents->delegate())
1085 tab_contents->delegate()->OnStartDownload(download); 1085 tab_contents->delegate()->OnStartDownload(download);
1086 } 1086 }
1087 1087
1088 void TabContents::WillClose(ConstrainedWindow* window) { 1088 void TabContents::WillClose(ConstrainedWindow* window) {
1089 ConstrainedWindowList::iterator it = 1089 ConstrainedWindowList::iterator it =
1090 find(child_windows_.begin(), child_windows_.end(), window); 1090 find(child_windows_.begin(), child_windows_.end(), window);
1091 bool removed_topmost_window = it == child_windows_.begin(); 1091 bool removed_topmost_window = it == child_windows_.begin();
1092 if (it != child_windows_.end()) 1092 if (it != child_windows_.end())
1093 child_windows_.erase(it); 1093 child_windows_.erase(it);
1094 if (child_windows_.size() > 0) { 1094 if (removed_topmost_window && child_windows_.size() > 0) {
1095 if (removed_topmost_window) { 1095 child_windows_[0]->ShowConstrainedWindow();
1096 child_windows_[0]->ShowConstrainedWindow();
1097 }
1098 BlockTabContent(true); 1096 BlockTabContent(true);
1099 } else { 1097 } else {
1100 BlockTabContent(false); 1098 BlockTabContent(false);
1101 } 1099 }
1102 } 1100 }
1103 1101
1104 void TabContents::WillCloseBlockedPopupContainer( 1102 void TabContents::WillCloseBlockedPopupContainer(
1105 BlockedPopupContainer* container) { 1103 BlockedPopupContainer* container) {
1106 DCHECK(blocked_popups_ == container); 1104 DCHECK(blocked_popups_ == container);
1107 blocked_popups_ = NULL; 1105 blocked_popups_ = NULL;
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2890 } 2888 }
2891 2889
2892 void TabContents::set_encoding(const std::string& encoding) { 2890 void TabContents::set_encoding(const std::string& encoding) {
2893 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); 2891 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding);
2894 } 2892 }
2895 2893
2896 void TabContents::SetAppIcon(const SkBitmap& app_icon) { 2894 void TabContents::SetAppIcon(const SkBitmap& app_icon) {
2897 app_icon_ = app_icon; 2895 app_icon_ = app_icon;
2898 NotifyNavigationStateChanged(INVALIDATE_TITLE); 2896 NotifyNavigationStateChanged(INVALIDATE_TITLE);
2899 } 2897 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/repost_form_warning_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698