view_targeter_delegate.cc revision 116680a4aac90f2aa7413d9095a592090648e557
1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "ui/views/view.h" 6#include "ui/views/view_targeter_delegate.h" 7 8namespace views { 9 10bool ViewTargeterDelegate::DoesIntersectRect(const View* target, 11 const gfx::Rect& rect) const { 12 return target->GetLocalBounds().Intersects(rect); 13} 14 15} // namespace views 16