| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |