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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2863203002: Ignore print() during page dismissal. (Closed)
Patch Set: rebase, fix linux build Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 namespace { 130 namespace {
131 131
132 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) { 132 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) {
133 switch (dialog_type) { 133 switch (dialog_type) {
134 case ChromeClient::kAlertDialog: 134 case ChromeClient::kAlertDialog:
135 return "alert"; 135 return "alert";
136 case ChromeClient::kConfirmDialog: 136 case ChromeClient::kConfirmDialog:
137 return "confirm"; 137 return "confirm";
138 case ChromeClient::kPromptDialog: 138 case ChromeClient::kPromptDialog:
139 return "prompt"; 139 return "prompt";
140 case ChromeClient::kPrintDialog:
141 return "print";
140 case ChromeClient::kHTMLDialog: 142 case ChromeClient::kHTMLDialog:
141 NOTREACHED(); 143 NOTREACHED();
142 } 144 }
143 NOTREACHED(); 145 NOTREACHED();
144 return ""; 146 return "";
145 } 147 }
146 148
147 const char* DismissalTypeToString(Document::PageDismissalType dismissal_type) { 149 const char* DismissalTypeToString(Document::PageDismissalType dismissal_type) {
148 switch (dismissal_type) { 150 switch (dismissal_type) {
149 case Document::kBeforeUnloadDismissal: 151 case Document::kBeforeUnloadDismissal:
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 if (RuntimeEnabledFeatures::presentationEnabled()) 1243 if (RuntimeEnabledFeatures::presentationEnabled())
1242 PresentationController::ProvideTo(frame, client->PresentationClient()); 1244 PresentationController::ProvideTo(frame, client->PresentationClient());
1243 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1245 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1244 ProvideAudioOutputDeviceClientTo(frame, 1246 ProvideAudioOutputDeviceClientTo(frame,
1245 new AudioOutputDeviceClientImpl(frame)); 1247 new AudioOutputDeviceClientImpl(frame));
1246 } 1248 }
1247 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); 1249 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher());
1248 } 1250 }
1249 1251
1250 } // namespace blink 1252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698