Chromium Code Reviews| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 RuntimeEnabledFeatures::setInputTypeWeekEnabled(enable); | 409 RuntimeEnabledFeatures::setInputTypeWeekEnabled(enable); |
| 410 } | 410 } |
| 411 | 411 |
| 412 bool WebRuntimeFeatures::isInputTypeWeekEnabled() | 412 bool WebRuntimeFeatures::isInputTypeWeekEnabled() |
| 413 { | 413 { |
| 414 return RuntimeEnabledFeatures::inputTypeWeekEnabled(); | 414 return RuntimeEnabledFeatures::inputTypeWeekEnabled(); |
| 415 } | 415 } |
| 416 | 416 |
| 417 void WebRuntimeFeatures::enableDialogElement(bool enable) | 417 void WebRuntimeFeatures::enableDialogElement(bool enable) |
| 418 { | 418 { |
| 419 #if ENABLE(DIALOG_ELEMENT) | |
| 420 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 419 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
| 421 #else | |
| 422 UNUSED_PARAM(enable); | |
| 423 #endif | |
| 424 } | 420 } |
| 425 | 421 |
| 426 bool WebRuntimeFeatures::isDialogElementEnabled() | 422 bool WebRuntimeFeatures::isDialogElementEnabled() |
| 427 { | 423 { |
| 428 #if ENABLE(DIALOG_ELEMENT) | |
| 429 return RuntimeEnabledFeatures::dialogElementEnabled(); | 424 return RuntimeEnabledFeatures::dialogElementEnabled(); |
| 430 #else | |
| 431 return false; | |
| 432 #endif | |
|
abarth-chromium
2013/04/25 03:59:33
LGTM
| |
| 433 } | 425 } |
| 434 | 426 |
| 435 void WebRuntimeFeatures::enableLazyLayout(bool enable) | 427 void WebRuntimeFeatures::enableLazyLayout(bool enable) |
| 436 { | 428 { |
| 437 RuntimeEnabledFeatures::setLazyLayoutEnabled(enable); | 429 RuntimeEnabledFeatures::setLazyLayoutEnabled(enable); |
| 438 } | 430 } |
| 439 | 431 |
| 440 bool WebRuntimeFeatures::isLazyLayoutEnabled() | 432 bool WebRuntimeFeatures::isLazyLayoutEnabled() |
| 441 { | 433 { |
| 442 return RuntimeEnabledFeatures::lazyLayoutEnabled(); | 434 return RuntimeEnabledFeatures::lazyLayoutEnabled(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 566 { | 558 { |
| 567 RuntimeEnabledFeatures::setIMEAPIEnabled(enable); | 559 RuntimeEnabledFeatures::setIMEAPIEnabled(enable); |
| 568 } | 560 } |
| 569 | 561 |
| 570 bool WebRuntimeFeatures::isIMEAPIEnabled() | 562 bool WebRuntimeFeatures::isIMEAPIEnabled() |
| 571 { | 563 { |
| 572 return RuntimeEnabledFeatures::imeAPIEnabled(); | 564 return RuntimeEnabledFeatures::imeAPIEnabled(); |
| 573 } | 565 } |
| 574 | 566 |
| 575 } // namespace WebKit | 567 } // namespace WebKit |
| OLD | NEW |