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

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 320713004: Update panel layout immediately after the user has finished resizing a panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 6 months 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
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/browser/ui/panels/panel_resize_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index afddc373aebaae35bc07f67ddb2bffcd94391e82..3b9fb9fcdbf2250ca81ee4e5781d293262aeda18 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -20,6 +20,7 @@
#include "chrome/common/chrome_version_info.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
+#include "ui/base/hit_test.h"
#if defined(USE_X11) && !defined(OS_CHROMEOS)
#include "base/environment.h"
@@ -455,11 +456,12 @@ void PanelManager::EndDragging(bool cancelled) {
}
void PanelManager::StartResizingByMouse(Panel* panel,
- const gfx::Point& mouse_location,
- panel::ResizingSides sides) {
+ const gfx::Point& mouse_location,
+ int component) {
if (panel->CanResizeByMouse() != panel::NOT_RESIZABLE &&
- sides != panel::RESIZE_NONE)
- resize_controller_->StartResizing(panel, mouse_location, sides);
+ component != HTNOWHERE) {
+ resize_controller_->StartResizing(panel, mouse_location, component);
+ }
}
void PanelManager::ResizeByMouse(const gfx::Point& mouse_location) {
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.h ('k') | chrome/browser/ui/panels/panel_resize_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698