Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.h

Issue 80323002: Restores maximized browser before dragging a tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_drag_controller.h
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.h b/chrome/browser/ui/views/tabs/tab_drag_controller.h
index cbd4f5bbeac22758108be4f2416f63287e7da5fa..bfc0b5eb973b2eba3df7b6067c84ee68aed6aea3 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.h
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.h
@@ -463,6 +463,11 @@ class TabDragController : public content::WebContentsDelegate,
gfx::Vector2d* drag_offset,
std::vector<gfx::Rect>* drag_bounds);
+ // Calculates new bounds for the dragged browser window.
+ gfx::Rect CalculateDraggedBrowserBounds(TabStrip* source,
+ const gfx::Point& point_in_screen,
+ std::vector<gfx::Rect>* drag_bounds);
+
// Returns the TabStripModel for the specified tabstrip.
TabStripModel* GetModel(TabStrip* tabstrip) const;

Powered by Google App Engine
This is Rietveld 408576698