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

Side by Side Diff: chrome/browser/ui/panels/panel_manager.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel_constants.h ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Drags the given panel. 92 // Drags the given panel.
93 // |mouse_location| is in screen coordinate system. 93 // |mouse_location| is in screen coordinate system.
94 void StartDragging(Panel* panel, const gfx::Point& mouse_location); 94 void StartDragging(Panel* panel, const gfx::Point& mouse_location);
95 void Drag(const gfx::Point& mouse_location); 95 void Drag(const gfx::Point& mouse_location);
96 void EndDragging(bool cancelled); 96 void EndDragging(bool cancelled);
97 97
98 // Resizes the given panel. 98 // Resizes the given panel.
99 // |mouse_location| is in screen coordinate system. 99 // |mouse_location| is in screen coordinate system.
100 void StartResizingByMouse(Panel* panel, const gfx::Point& mouse_location, 100 void StartResizingByMouse(Panel* panel, const gfx::Point& mouse_location,
101 panel::ResizingSides sides); 101 int component);
102 void ResizeByMouse(const gfx::Point& mouse_location); 102 void ResizeByMouse(const gfx::Point& mouse_location);
103 void EndResizingByMouse(bool cancelled); 103 void EndResizingByMouse(bool cancelled);
104 104
105 // Invoked when a panel's expansion state changes. 105 // Invoked when a panel's expansion state changes.
106 void OnPanelExpansionStateChanged(Panel* panel); 106 void OnPanelExpansionStateChanged(Panel* panel);
107 107
108 // Moves the |panel| to a different collection. 108 // Moves the |panel| to a different collection.
109 void MovePanelToCollection(Panel* panel, 109 void MovePanelToCollection(Panel* panel,
110 PanelCollection* target_collection, 110 PanelCollection* target_collection,
111 PanelCollection::PositioningMask positioning_mask); 111 PanelCollection::PositioningMask positioning_mask);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 // Whether or not bounds will be updated when the preferred content size is 235 // Whether or not bounds will be updated when the preferred content size is
236 // changed. The testing code could set this flag to false so that other tests 236 // changed. The testing code could set this flag to false so that other tests
237 // will not be affected. 237 // will not be affected.
238 bool auto_sizing_enabled_; 238 bool auto_sizing_enabled_;
239 239
240 DISALLOW_COPY_AND_ASSIGN(PanelManager); 240 DISALLOW_COPY_AND_ASSIGN(PanelManager);
241 }; 241 };
242 242
243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_constants.h ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698