Commit 7d391ee3 authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Rename TouchActionUtil namepsace to touch_action_util

https://google.github.io/styleguide/cppguide.html#Namespace_Names
> Namespace names are all lower-case.

This CL has no behavior changes.

Bug: 889726
Change-Id: I897e124f0320106f49bc9f7f99533d7cfd0b125b
Reviewed-on: https://chromium-review.googlesource.com/c/1282644Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Cr-Commit-Position: refs/heads/master@{#599954}
parent d76651b4
...@@ -2164,7 +2164,8 @@ bool WebViewImpl::ShouldZoomToLegibleScale(const Element& element) { ...@@ -2164,7 +2164,8 @@ bool WebViewImpl::ShouldZoomToLegibleScale(const Element& element) {
// decide not to zoom in if the user won't be able to zoom out. e.g if the // decide not to zoom in if the user won't be able to zoom out. e.g if the
// textbox is within a touch-action: none container the user can't zoom // textbox is within a touch-action: none container the user can't zoom
// back out. // back out.
TouchAction action = TouchActionUtil::ComputeEffectiveTouchAction(element); TouchAction action =
touch_action_util::ComputeEffectiveTouchAction(element);
if (!(action & TouchAction::kTouchActionPinchZoom)) if (!(action & TouchAction::kTouchActionPinchZoom))
zoom_into_legible_scale = false; zoom_into_legible_scale = false;
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "third_party/blink/renderer/core/layout/layout_object.h" #include "third_party/blink/renderer/core/layout/layout_object.h"
namespace blink { namespace blink {
namespace TouchActionUtil { namespace touch_action_util {
TouchAction ComputeEffectiveTouchAction(const Node& node) { TouchAction ComputeEffectiveTouchAction(const Node& node) {
if (node.GetComputedStyle()) if (node.GetComputedStyle())
...@@ -20,5 +20,5 @@ TouchAction ComputeEffectiveTouchAction(const Node& node) { ...@@ -20,5 +20,5 @@ TouchAction ComputeEffectiveTouchAction(const Node& node) {
return TouchAction::kTouchActionAuto; return TouchAction::kTouchActionAuto;
} }
} // namespace TouchActionUtil } // namespace touch_action_util
} // namespace blink } // namespace blink
...@@ -12,9 +12,9 @@ namespace blink { ...@@ -12,9 +12,9 @@ namespace blink {
class Node; class Node;
namespace TouchActionUtil { namespace touch_action_util {
CORE_EXPORT TouchAction ComputeEffectiveTouchAction(const Node&); CORE_EXPORT TouchAction ComputeEffectiveTouchAction(const Node&);
} // namespace TouchActionUtil } // namespace touch_action_util
} // namespace blink } // namespace blink
......
...@@ -572,7 +572,7 @@ void TouchEventManager::UpdateTouchAttributeMapsForPointerDown( ...@@ -572,7 +572,7 @@ void TouchEventManager::UpdateTouchAttributeMapsForPointerDown(
attributes->region_ = region; attributes->region_ = region;
TouchAction effective_touch_action = TouchAction effective_touch_action =
TouchActionUtil::ComputeEffectiveTouchAction(*touch_node); touch_action_util::ComputeEffectiveTouchAction(*touch_node);
should_enforce_vertical_scroll_ = should_enforce_vertical_scroll_ =
touch_sequence_document_->IsVerticalScrollEnforced(); touch_sequence_document_->IsVerticalScrollEnforced();
......
...@@ -218,6 +218,7 @@ _CONFIG = [ ...@@ -218,6 +218,7 @@ _CONFIG = [
# Nested namespaces under the blink namespace # Nested namespaces under the blink namespace
'cssvalue::.+', 'cssvalue::.+',
'scheduler::.+', 'scheduler::.+',
'touch_action_util::.+',
'xpath::.+', 'xpath::.+',
# Third-party libraries that don't depend on non-Blink Chrome code # Third-party libraries that don't depend on non-Blink Chrome code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment