OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 switches::kTouchTextSelectionStrategy); | 739 switches::kTouchTextSelectionStrategy); |
740 if (selection_strategy_str == "direction") | 740 if (selection_strategy_str == "direction") |
741 selection_strategy = WebSettings::SelectionStrategyType::Direction; | 741 selection_strategy = WebSettings::SelectionStrategyType::Direction; |
742 webview()->settings()->setSelectionStrategy(selection_strategy); | 742 webview()->settings()->setSelectionStrategy(selection_strategy); |
743 | 743 |
744 std::string passiveListenersDefault = | 744 std::string passiveListenersDefault = |
745 command_line.GetSwitchValueASCII(switches::kPassiveListenersDefault); | 745 command_line.GetSwitchValueASCII(switches::kPassiveListenersDefault); |
746 if (!passiveListenersDefault.empty()) { | 746 if (!passiveListenersDefault.empty()) { |
747 WebSettings::PassiveEventListenerDefault passiveDefault = | 747 WebSettings::PassiveEventListenerDefault passiveDefault = |
748 WebSettings::PassiveEventListenerDefault::False; | 748 WebSettings::PassiveEventListenerDefault::False; |
749 if (passiveListenersDefault == "documentonlytrue") | 749 if (passiveListenersDefault == "true") |
750 passiveDefault = WebSettings::PassiveEventListenerDefault::DocumentTrue; | |
751 else if (passiveListenersDefault == "true") | |
752 passiveDefault = WebSettings::PassiveEventListenerDefault::True; | 750 passiveDefault = WebSettings::PassiveEventListenerDefault::True; |
753 else if (passiveListenersDefault == "forcealltrue") | 751 else if (passiveListenersDefault == "forcealltrue") |
754 passiveDefault = WebSettings::PassiveEventListenerDefault::ForceAllTrue; | 752 passiveDefault = WebSettings::PassiveEventListenerDefault::ForceAllTrue; |
755 webview()->settings()->setPassiveEventListenerDefault(passiveDefault); | 753 webview()->settings()->setPassiveEventListenerDefault(passiveDefault); |
756 } | 754 } |
757 | 755 |
758 ApplyBlinkSettings(command_line, webview()->settings()); | 756 ApplyBlinkSettings(command_line, webview()->settings()); |
759 | 757 |
760 if (params.main_frame_routing_id != MSG_ROUTING_NONE) { | 758 if (params.main_frame_routing_id != MSG_ROUTING_NONE) { |
761 main_render_frame_ = RenderFrameImpl::CreateMainFrame( | 759 main_render_frame_ = RenderFrameImpl::CreateMainFrame( |
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3261 return render_frame->focused_pepper_plugin(); | 3259 return render_frame->focused_pepper_plugin(); |
3262 } | 3260 } |
3263 frame = frame->traverseNext(false); | 3261 frame = frame->traverseNext(false); |
3264 } | 3262 } |
3265 | 3263 |
3266 return nullptr; | 3264 return nullptr; |
3267 } | 3265 } |
3268 #endif | 3266 #endif |
3269 | 3267 |
3270 } // namespace content | 3268 } // namespace content |
OLD | NEW |