| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 { | 459 { |
| 460 #if ENABLE(INPUT_TYPE_DATETIME_INCOMPLETE) | 460 #if ENABLE(INPUT_TYPE_DATETIME_INCOMPLETE) |
| 461 return RuntimeEnabledFeatures::inputTypeDateTimeEnabled(); | 461 return RuntimeEnabledFeatures::inputTypeDateTimeEnabled(); |
| 462 #else | 462 #else |
| 463 return false; | 463 return false; |
| 464 #endif | 464 #endif |
| 465 } | 465 } |
| 466 | 466 |
| 467 void WebRuntimeFeatures::enableInputTypeWeek(bool enable) | 467 void WebRuntimeFeatures::enableInputTypeWeek(bool enable) |
| 468 { | 468 { |
| 469 #if ENABLE(INPUT_TYPE_WEEK) | |
| 470 RuntimeEnabledFeatures::setInputTypeWeekEnabled(enable); | 469 RuntimeEnabledFeatures::setInputTypeWeekEnabled(enable); |
| 471 #else | |
| 472 UNUSED_PARAM(enable); | |
| 473 #endif | |
| 474 } | 470 } |
| 475 | 471 |
| 476 bool WebRuntimeFeatures::isInputTypeWeekEnabled() | 472 bool WebRuntimeFeatures::isInputTypeWeekEnabled() |
| 477 { | 473 { |
| 478 #if ENABLE(INPUT_TYPE_WEEK) | |
| 479 return RuntimeEnabledFeatures::inputTypeWeekEnabled(); | 474 return RuntimeEnabledFeatures::inputTypeWeekEnabled(); |
| 480 #else | |
| 481 return false; | |
| 482 #endif | |
| 483 } | 475 } |
| 484 | 476 |
| 485 void WebRuntimeFeatures::enableDialogElement(bool enable) | 477 void WebRuntimeFeatures::enableDialogElement(bool enable) |
| 486 { | 478 { |
| 487 #if ENABLE(DIALOG_ELEMENT) | 479 #if ENABLE(DIALOG_ELEMENT) |
| 488 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 480 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
| 489 #else | 481 #else |
| 490 UNUSED_PARAM(enable); | 482 UNUSED_PARAM(enable); |
| 491 #endif | 483 #endif |
| 492 } | 484 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() | 574 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() |
| 583 { | 575 { |
| 584 #if ENABLE(REQUEST_AUTOCOMPLETE) | 576 #if ENABLE(REQUEST_AUTOCOMPLETE) |
| 585 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); | 577 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); |
| 586 #else | 578 #else |
| 587 return false; | 579 return false; |
| 588 #endif | 580 #endif |
| 589 } | 581 } |
| 590 | 582 |
| 591 } // namespace WebKit | 583 } // namespace WebKit |
| OLD | NEW |