OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 case ChromeClient::ConfirmDialog: | 102 case ChromeClient::ConfirmDialog: |
103 return TypeBuilder::Page::DialogType::Confirm; | 103 return TypeBuilder::Page::DialogType::Confirm; |
104 case ChromeClient::PromptDialog: | 104 case ChromeClient::PromptDialog: |
105 return TypeBuilder::Page::DialogType::Prompt; | 105 return TypeBuilder::Page::DialogType::Prompt; |
106 case ChromeClient::HTMLDialog: | 106 case ChromeClient::HTMLDialog: |
107 return TypeBuilder::Page::DialogType::Beforeunload; | 107 return TypeBuilder::Page::DialogType::Beforeunload; |
108 } | 108 } |
109 return TypeBuilder::Page::DialogType::Alert; | 109 return TypeBuilder::Page::DialogType::Alert; |
110 } | 110 } |
111 | 111 |
112 } | 112 } // namespace |
113 | 113 |
114 static bool decodeBuffer(const char* buffer, unsigned size, const String& textEn
codingName, String* result) | 114 static bool decodeBuffer(const char* buffer, unsigned size, const String& textEn
codingName, String* result) |
115 { | 115 { |
116 if (buffer) { | 116 if (buffer) { |
117 WTF::TextEncoding encoding(textEncodingName); | 117 WTF::TextEncoding encoding(textEncodingName); |
118 if (!encoding.isValid()) | 118 if (!encoding.isValid()) |
119 encoding = WindowsLatin1Encoding(); | 119 encoding = WindowsLatin1Encoding(); |
120 *result = encoding.decode(buffer, size); | 120 *result = encoding.decode(buffer, size); |
121 return true; | 121 return true; |
122 } | 122 } |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 | 777 |
778 DEFINE_TRACE(InspectorPageAgent) | 778 DEFINE_TRACE(InspectorPageAgent) |
779 { | 779 { |
780 visitor->trace(m_inspectedFrames); | 780 visitor->trace(m_inspectedFrames); |
781 visitor->trace(m_debuggerAgent); | 781 visitor->trace(m_debuggerAgent); |
782 visitor->trace(m_inspectorResourceContentLoader); | 782 visitor->trace(m_inspectorResourceContentLoader); |
783 InspectorBaseAgent::trace(visitor); | 783 InspectorBaseAgent::trace(visitor); |
784 } | 784 } |
785 | 785 |
786 } // namespace blink | 786 } // namespace blink |
OLD | NEW |