| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
| 2 // All rights reserved. | 2 // 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // JavaScript --------------------------------------------------------- | 89 // JavaScript --------------------------------------------------------- |
| 90 static void notifyJSOutOfMemory(Frame* frame); | 90 static void notifyJSOutOfMemory(Frame* frame); |
| 91 | 91 |
| 92 // Language ----------------------------------------------------------- | 92 // Language ----------------------------------------------------------- |
| 93 static String computedDefaultLanguage(); | 93 static String computedDefaultLanguage(); |
| 94 | 94 |
| 95 // LayoutTestMode ----------------------------------------------------- | 95 // LayoutTestMode ----------------------------------------------------- |
| 96 static bool layoutTestMode(); | 96 static bool layoutTestMode(); |
| 97 | 97 |
| 98 // MimeType ----------------------------------------------------------- | 98 // MimeType ----------------------------------------------------------- |
| 99 static bool isSupportedImageMIMEType(const char* mime_type); |
| 100 static bool isSupportedJavascriptMIMEType(const char* mime_type); |
| 101 static bool isSupportedNonImageMIMEType(const char* mime_type); |
| 99 static bool matchesMIMEType(const String& pattern, const String& type); | 102 static bool matchesMIMEType(const String& pattern, const String& type); |
| 100 static String mimeTypeForExtension(const String& ext); | 103 static String mimeTypeForExtension(const String& ext); |
| 101 static String mimeTypeFromFile(const String& file_path); | 104 static String mimeTypeFromFile(const String& file_path); |
| 102 static String preferredExtensionForMIMEType(const String& mime_type); | 105 static String preferredExtensionForMIMEType(const String& mime_type); |
| 103 | 106 |
| 104 // Plugin ------------------------------------------------------------- | 107 // Plugin ------------------------------------------------------------- |
| 105 static bool plugins(bool refresh, Vector<PluginInfo*>* plugins); | 108 static bool plugins(bool refresh, Vector<PluginInfo*>* plugins); |
| 106 static NPObject* pluginScriptableObject(Widget* widget); | 109 static NPObject* pluginScriptableObject(Widget* widget); |
| 107 | 110 |
| 108 // Protocol ----------------------------------------------------------- | 111 // Protocol ----------------------------------------------------------- |
| (...skipping 29 matching lines...) Expand all Loading... |
| 138 // URL ---------------------------------------------------------------- | 141 // URL ---------------------------------------------------------------- |
| 139 static KURL inspectorURL(); | 142 static KURL inspectorURL(); |
| 140 | 143 |
| 141 // Widget ------------------------------------------------------------- | 144 // Widget ------------------------------------------------------------- |
| 142 static void widgetSetCursor(Widget*, const Cursor&); | 145 static void widgetSetCursor(Widget*, const Cursor&); |
| 143 static void widgetSetFocus(Widget*); | 146 static void widgetSetFocus(Widget*); |
| 144 }; | 147 }; |
| 145 } | 148 } |
| 146 | 149 |
| 147 #endif | 150 #endif |
| OLD | NEW |