| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "ChromiumBridge.h" | 6 #include "ChromiumBridge.h" |
| 7 | 7 |
| 8 #include "BitmapImage.h" | 8 #include "BitmapImage.h" |
| 9 #include "ClipboardUtilitiesChromium.h" | 9 #include "ClipboardUtilitiesChromium.h" |
| 10 #include "Cursor.h" | 10 #include "Cursor.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 240 } |
| 241 | 241 |
| 242 // LayoutTestMode ------------------------------------------------------------- | 242 // LayoutTestMode ------------------------------------------------------------- |
| 243 | 243 |
| 244 bool ChromiumBridge::layoutTestMode() { | 244 bool ChromiumBridge::layoutTestMode() { |
| 245 return webkit_glue::IsLayoutTestMode(); | 245 return webkit_glue::IsLayoutTestMode(); |
| 246 } | 246 } |
| 247 | 247 |
| 248 // MimeType ------------------------------------------------------------------- | 248 // MimeType ------------------------------------------------------------------- |
| 249 | 249 |
| 250 bool ChromiumBridge::isSupportedImageMIMEType(const char* mime_type) { |
| 251 return net::IsSupportedImageMimeType(mime_type); |
| 252 } |
| 253 |
| 254 bool ChromiumBridge::isSupportedJavascriptMIMEType(const char* mime_type) { |
| 255 return net::IsSupportedJavascriptMimeType(mime_type); |
| 256 } |
| 257 |
| 258 bool ChromiumBridge::isSupportedNonImageMIMEType(const char* mime_type) { |
| 259 return net::IsSupportedNonImageMimeType(mime_type); |
| 260 } |
| 261 |
| 250 bool ChromiumBridge::matchesMIMEType(const String& pattern, | 262 bool ChromiumBridge::matchesMIMEType(const String& pattern, |
| 251 const String& type) { | 263 const String& type) { |
| 252 return net::MatchesMimeType(webkit_glue::StringToStdString(pattern), | 264 return net::MatchesMimeType(webkit_glue::StringToStdString(pattern), |
| 253 webkit_glue::StringToStdString(type)); | 265 webkit_glue::StringToStdString(type)); |
| 254 } | 266 } |
| 255 | 267 |
| 256 String ChromiumBridge::mimeTypeForExtension(const String& ext) { | 268 String ChromiumBridge::mimeTypeForExtension(const String& ext) { |
| 257 if (ext.isEmpty()) | 269 if (ext.isEmpty()) |
| 258 return String(); | 270 return String(); |
| 259 | 271 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 chrome_client->SetCursor(WebCursor(cursor.impl())); | 522 chrome_client->SetCursor(WebCursor(cursor.impl())); |
| 511 } | 523 } |
| 512 | 524 |
| 513 void ChromiumBridge::widgetSetFocus(Widget* widget) { | 525 void ChromiumBridge::widgetSetFocus(Widget* widget) { |
| 514 ChromeClientImpl* chrome_client = ToChromeClient(widget); | 526 ChromeClientImpl* chrome_client = ToChromeClient(widget); |
| 515 if (chrome_client) | 527 if (chrome_client) |
| 516 chrome_client->focus(); | 528 chrome_client->focus(); |
| 517 } | 529 } |
| 518 | 530 |
| 519 } // namespace WebCore | 531 } // namespace WebCore |
| OLD | NEW |