Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 13888003: Remove compile-time / run-time flags for input[type=date]. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 bool WebRuntimeFeatures::isStyleScopedEnabled() 466 bool WebRuntimeFeatures::isStyleScopedEnabled()
467 { 467 {
468 #if ENABLE(STYLE_SCOPED) 468 #if ENABLE(STYLE_SCOPED)
469 return RuntimeEnabledFeatures::styleScopedEnabled(); 469 return RuntimeEnabledFeatures::styleScopedEnabled();
470 #else 470 #else
471 return false; 471 return false;
472 #endif 472 #endif
473 } 473 }
474 474
475 void WebRuntimeFeatures::enableInputTypeDate(bool enable)
476 {
477 #if ENABLE(INPUT_TYPE_DATE)
478 RuntimeEnabledFeatures::setInputTypeDateEnabled(enable);
479 #else
480 UNUSED_PARAM(enable);
481 #endif
482 }
483
484 bool WebRuntimeFeatures::isInputTypeDateEnabled()
485 {
486 #if ENABLE(INPUT_TYPE_DATE)
487 return RuntimeEnabledFeatures::inputTypeDateEnabled();
488 #else
489 return false;
490 #endif
491 }
492
493 void WebRuntimeFeatures::enableInputTypeDateTime(bool enable) 475 void WebRuntimeFeatures::enableInputTypeDateTime(bool enable)
494 { 476 {
495 #if ENABLE(INPUT_TYPE_DATETIME_INCOMPLETE) 477 #if ENABLE(INPUT_TYPE_DATETIME_INCOMPLETE)
496 RuntimeEnabledFeatures::setInputTypeDateTimeEnabled(enable); 478 RuntimeEnabledFeatures::setInputTypeDateTimeEnabled(enable);
497 #else 479 #else
498 UNUSED_PARAM(enable); 480 UNUSED_PARAM(enable);
499 #endif 481 #endif
500 } 482 }
501 483
502 bool WebRuntimeFeatures::isInputTypeDateTimeEnabled() 484 bool WebRuntimeFeatures::isInputTypeDateTimeEnabled()
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() 662 bool WebRuntimeFeatures::isRequestAutocompleteEnabled()
681 { 663 {
682 #if ENABLE(REQUEST_AUTOCOMPLETE) 664 #if ENABLE(REQUEST_AUTOCOMPLETE)
683 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); 665 return RuntimeEnabledFeatures::requestAutocompleteEnabled();
684 #else 666 #else
685 return false; 667 return false;
686 #endif 668 #endif
687 } 669 }
688 670
689 } // namespace WebKit 671 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebRuntimeFeatures.h ('k') | Source/WebKit/chromium/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698