This source file includes following definitions.
- HandleDrag
#include "chrome/browser/ui/panels/detached_panel_drag_handler.h"
#include "base/logging.h"
#include "chrome/browser/ui/panels/panel.h"
#include "chrome/browser/ui/panels/panel_collection.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
void DetachedPanelDragHandler::HandleDrag(Panel* panel,
const gfx::Point& target_position) {
DCHECK_EQ(PanelCollection::DETACHED, panel->collection()->type());
gfx::Rect new_bounds(panel->GetBounds());
new_bounds.set_origin(target_position);
panel->SetPanelBoundsInstantly(new_bounds);
}