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

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

Issue 14089009: Change long press behavior when touch text selection is enabled: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // define an enum in WebSettings.h and have a switch statement that 339 // define an enum in WebSettings.h and have a switch statement that
340 // translates. Until then, this is probably fine, though. 340 // translates. Until then, this is probably fine, though.
341 m_settings->setTextDirectionSubmenuInclusionBehavior(WebCore::TextDirectionS ubmenuNeverIncluded); 341 m_settings->setTextDirectionSubmenuInclusionBehavior(WebCore::TextDirectionS ubmenuNeverIncluded);
342 } 342 }
343 343
344 void WebSettingsImpl::setTouchDragDropEnabled(bool enabled) 344 void WebSettingsImpl::setTouchDragDropEnabled(bool enabled)
345 { 345 {
346 m_settings->setTouchDragDropEnabled(enabled); 346 m_settings->setTouchDragDropEnabled(enabled);
347 } 347 }
348 348
349 void WebSettingsImpl::setTouchEditingEnabled(bool enabled)
350 {
351 m_settings->setTouchEditingEnabled(enabled);
352 }
353
349 void WebSettingsImpl::setThreadedHTMLParser(bool enabled) 354 void WebSettingsImpl::setThreadedHTMLParser(bool enabled)
350 { 355 {
351 #if ENABLE(THREADED_HTML_PARSER) 356 #if ENABLE(THREADED_HTML_PARSER)
352 m_settings->setThreadedHTMLParser(enabled); 357 m_settings->setThreadedHTMLParser(enabled);
353 #endif 358 #endif
354 } 359 }
355 360
356 void WebSettingsImpl::setOfflineWebApplicationCacheEnabled(bool enabled) 361 void WebSettingsImpl::setOfflineWebApplicationCacheEnabled(bool enabled)
357 { 362 {
358 m_settings->setOfflineWebApplicationCacheEnabled(enabled); 363 m_settings->setOfflineWebApplicationCacheEnabled(enabled);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 616
612 bool WebSettingsImpl::scrollAnimatorEnabled() const 617 bool WebSettingsImpl::scrollAnimatorEnabled() const
613 { 618 {
614 #if ENABLE(SMOOTH_SCROLLING) 619 #if ENABLE(SMOOTH_SCROLLING)
615 return m_settings->scrollAnimatorEnabled(); 620 return m_settings->scrollAnimatorEnabled();
616 #else 621 #else
617 return false; 622 return false;
618 #endif 623 #endif
619 } 624 }
620 625
626 bool WebSettingsImpl::touchEditingEnabled() const
627 {
628 return m_settings->touchEditingEnabled();
629 }
630
621 void WebSettingsImpl::setVisualWordMovementEnabled(bool enabled) 631 void WebSettingsImpl::setVisualWordMovementEnabled(bool enabled)
622 { 632 {
623 m_settings->setVisualWordMovementEnabled(enabled); 633 m_settings->setVisualWordMovementEnabled(enabled);
624 } 634 }
625 635
626 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled) 636 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled)
627 { 637 {
628 #if ENABLE(VIDEO_TRACK) 638 #if ENABLE(VIDEO_TRACK)
629 m_settings->setShouldDisplaySubtitles(enabled); 639 m_settings->setShouldDisplaySubtitles(enabled);
630 #else 640 #else
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 { 714 {
705 m_settings->setSelectionIncludesAltImageText(enabled); 715 m_settings->setSelectionIncludesAltImageText(enabled);
706 } 716 }
707 717
708 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) 718 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
709 { 719 {
710 m_settings->setSmartInsertDeleteEnabled(enabled); 720 m_settings->setSmartInsertDeleteEnabled(enabled);
711 } 721 }
712 722
713 } // namespace WebKit 723 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698