| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool InspectorFrontendChannelDummy::sendMessageToFrontend(const String& message) | 151 bool InspectorFrontendChannelDummy::sendMessageToFrontend(const String& message) |
| 152 { | 152 { |
| 153 return InspectorClient::doDispatchMessageOnFrontendPage(m_frontendPage, mess
age); | 153 return InspectorClient::doDispatchMessageOnFrontendPage(m_frontendPage, mess
age); |
| 154 } | 154 } |
| 155 | 155 |
| 156 static bool markerTypesFrom(const String& markerType, DocumentMarker::MarkerType
s& result) | 156 static bool markerTypesFrom(const String& markerType, DocumentMarker::MarkerType
s& result) |
| 157 { | 157 { |
| 158 if (markerType.isEmpty() || equalIgnoringCase(markerType, "all")) | 158 if (markerType.isEmpty() || equalIgnoringCase(markerType, "all")) |
| 159 result = DocumentMarker::AllMarkers(); | 159 result = DocumentMarker::allMarkers(); |
| 160 else if (equalIgnoringCase(markerType, "Spelling")) | 160 else if (equalIgnoringCase(markerType, "Spelling")) |
| 161 result = DocumentMarker::Spelling; | 161 result = DocumentMarker::Spelling; |
| 162 else if (equalIgnoringCase(markerType, "Grammar")) | 162 else if (equalIgnoringCase(markerType, "Grammar")) |
| 163 result = DocumentMarker::Grammar; | 163 result = DocumentMarker::Grammar; |
| 164 else if (equalIgnoringCase(markerType, "TextMatch")) | 164 else if (equalIgnoringCase(markerType, "TextMatch")) |
| 165 result = DocumentMarker::TextMatch; | 165 result = DocumentMarker::TextMatch; |
| 166 else | 166 else |
| 167 return false; | 167 return false; |
| 168 | 168 |
| 169 return true; | 169 return true; |
| (...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2252 return false; | 2252 return false; |
| 2253 sharedContext->extensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CONTEX
T_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB); | 2253 sharedContext->extensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CONTEX
T_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB); |
| 2254 // To prevent tests that call loseSharedGraphicsContext3D from being | 2254 // To prevent tests that call loseSharedGraphicsContext3D from being |
| 2255 // flaky, we call finish so that the context is guaranteed to be lost | 2255 // flaky, we call finish so that the context is guaranteed to be lost |
| 2256 // synchronously (i.e. before returning). | 2256 // synchronously (i.e. before returning). |
| 2257 sharedContext->finish(); | 2257 sharedContext->finish(); |
| 2258 return true; | 2258 return true; |
| 2259 } | 2259 } |
| 2260 | 2260 |
| 2261 } | 2261 } |
| OLD | NEW |