Commit 0f5c25c7 authored by Hwanseung Lee's avatar Hwanseung Lee Committed by Commit Bot

Rename TouchAdjustment namepsace to touch_adjustment

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: I4ed9022a181156fdfb13210d00c1b947a9a0df51
Reviewed-on: https://chromium-review.googlesource.com/1253168Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Hwanseung Lee <hs1217.lee@samsung.com>
Cr-Commit-Position: refs/heads/master@{#595433}
parent ef79968c
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
namespace blink { namespace blink {
namespace TouchAdjustment { namespace touch_adjustment {
const float kZeroTolerance = 1e-6f; const float kZeroTolerance = 1e-6f;
constexpr float kMaxAdjustmentSizeDips = 32.f; constexpr float kMaxAdjustmentSizeDips = 32.f;
...@@ -65,16 +65,16 @@ class SubtargetGeometry { ...@@ -65,16 +65,16 @@ class SubtargetGeometry {
FloatQuad quad_; FloatQuad quad_;
}; };
} // namespace TouchAdjustment } // namespace touch_adjustment
} // namespace blink } // namespace blink
WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
blink::TouchAdjustment::SubtargetGeometry) blink::touch_adjustment::SubtargetGeometry)
namespace blink { namespace blink {
namespace TouchAdjustment { namespace touch_adjustment {
typedef HeapVector<SubtargetGeometry> SubtargetGeometryList; typedef HeapVector<SubtargetGeometry> SubtargetGeometryList;
typedef bool (*NodeFilter)(Node*); typedef bool (*NodeFilter)(Node*);
...@@ -481,7 +481,7 @@ bool FindNodeWithLowestDistanceMetric(Node*& target_node, ...@@ -481,7 +481,7 @@ bool FindNodeWithLowestDistanceMetric(Node*& target_node,
return (target_node); return (target_node);
} }
} // namespace TouchAdjustment } // namespace touch_adjustment
bool FindBestClickableCandidate(Node*& target_node, bool FindBestClickableCandidate(Node*& target_node,
IntPoint& target_point, IntPoint& target_point,
...@@ -489,13 +489,13 @@ bool FindBestClickableCandidate(Node*& target_node, ...@@ -489,13 +489,13 @@ bool FindBestClickableCandidate(Node*& target_node,
const IntRect& touch_area, const IntRect& touch_area,
const HeapVector<Member<Node>>& nodes) { const HeapVector<Member<Node>>& nodes) {
IntRect target_area; IntRect target_area;
TouchAdjustment::SubtargetGeometryList subtargets; touch_adjustment::SubtargetGeometryList subtargets;
TouchAdjustment::CompileSubtargetList( touch_adjustment::CompileSubtargetList(
nodes, subtargets, TouchAdjustment::NodeRespondsToTapGesture, nodes, subtargets, touch_adjustment::NodeRespondsToTapGesture,
TouchAdjustment::AppendBasicSubtargetsForNode); touch_adjustment::AppendBasicSubtargetsForNode);
return TouchAdjustment::FindNodeWithLowestDistanceMetric( return touch_adjustment::FindNodeWithLowestDistanceMetric(
target_node, target_point, target_area, touch_hotspot, touch_area, target_node, target_point, target_area, touch_hotspot, touch_area,
subtargets, TouchAdjustment::HybridDistanceFunction); subtargets, touch_adjustment::HybridDistanceFunction);
} }
bool FindBestContextMenuCandidate(Node*& target_node, bool FindBestContextMenuCandidate(Node*& target_node,
...@@ -504,18 +504,18 @@ bool FindBestContextMenuCandidate(Node*& target_node, ...@@ -504,18 +504,18 @@ bool FindBestContextMenuCandidate(Node*& target_node,
const IntRect& touch_area, const IntRect& touch_area,
const HeapVector<Member<Node>>& nodes) { const HeapVector<Member<Node>>& nodes) {
IntRect target_area; IntRect target_area;
TouchAdjustment::SubtargetGeometryList subtargets; touch_adjustment::SubtargetGeometryList subtargets;
TouchAdjustment::CompileSubtargetList( touch_adjustment::CompileSubtargetList(
nodes, subtargets, TouchAdjustment::ProvidesContextMenuItems, nodes, subtargets, touch_adjustment::ProvidesContextMenuItems,
TouchAdjustment::AppendContextSubtargetsForNode); touch_adjustment::AppendContextSubtargetsForNode);
return TouchAdjustment::FindNodeWithLowestDistanceMetric( return touch_adjustment::FindNodeWithLowestDistanceMetric(
target_node, target_point, target_area, touch_hotspot, touch_area, target_node, target_point, target_area, touch_hotspot, touch_area,
subtargets, TouchAdjustment::HybridDistanceFunction); subtargets, touch_adjustment::HybridDistanceFunction);
} }
LayoutSize GetHitTestRectForAdjustment(const LayoutSize& touch_area) { LayoutSize GetHitTestRectForAdjustment(const LayoutSize& touch_area) {
const LayoutSize max_size(TouchAdjustment::kMaxAdjustmentSizeDips, const LayoutSize max_size(touch_adjustment::kMaxAdjustmentSizeDips,
TouchAdjustment::kMaxAdjustmentSizeDips); touch_adjustment::kMaxAdjustmentSizeDips);
return touch_area.ShrunkTo(max_size); return touch_area.ShrunkTo(max_size);
} }
......
...@@ -314,6 +314,12 @@ _CONFIG = [ ...@@ -314,6 +314,12 @@ _CONFIG = [
'cc::SolidColorScrollbarLayer', 'cc::SolidColorScrollbarLayer',
], ],
}, },
{
'paths': ['third_party/blink/renderer/core/page'],
'allowed': [
'touch_adjustment::.+',
],
},
{ {
'paths': ['third_party/blink/renderer/core/inspector/inspector_memory_agent.cc'], 'paths': ['third_party/blink/renderer/core/inspector/inspector_memory_agent.cc'],
'allowed': [ 'allowed': [
......
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