Skip to content

Commit

Permalink
Fixed build failure from vertical tab PR with cr109 (#16394)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong authored Dec 17, 2022
1 parent efdb8f5 commit bb9bb2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ void TabDragController::MoveAttached(const gfx::Point& point_in_screen,
if (!is_showing_vertical_tabs_)
return;

// Update |last_move_screen_loc_| only when tab strip actually changed just
// like Chromium impl does. But we set y coordinate as we're in vertical
// tab strip.
// Update |last_move_attached_context_loc_| only when tab strip actually
// changed just like Chromium impl does. But we set y coordinate as we're in
// vertical tab strip.
WebContents* last_contents = drag_data_.back().contents;
auto* attached_model = attached_context_->GetTabStripModel();
int index_of_last_item = attached_model->GetIndexOfWebContents(last_contents);
if (index_of_last_item !=
attached_model->GetIndexOfWebContents(last_contents)) {
last_move_screen_loc_ = point_in_screen.y();
last_move_attached_context_loc_ = point_in_screen.y();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ using TabDragControllerBrave = TabDragController;
#define CalculateNonMaximizedDraggedBrowserBounds \
virtual CalculateNonMaximizedDraggedBrowserBounds
#define CalculateDraggedBrowserBounds virtual CalculateDraggedBrowserBounds
#define InitDragData virtual InitDragData

#include "src/chrome/browser/ui/views/tabs/tab_drag_controller.h"

Expand Down

0 comments on commit bb9bb2a

Please sign in to comment.