Home | History | Annotate | Download | only in panels

Lines Matching refs:panel

11 #include "chrome/browser/ui/panels/panel.h"
15 // Invalid panel index.
18 // Minimum width and height of a panel.
22 // Default width and height of a panel.
26 // Maxmium width and height of a panel based on the factor of the working
77 Panel* PanelManager::CreatePanel(Browser* browser) {
81 Panel* panel = new Panel(browser, bounds);
83 active_panels_.push_back(panel);
85 pending_panels_.push_back(panel);
87 return panel;
92 Panel* panel = pending_panels_.front();
93 gfx::Rect bounds = panel->bounds();
96 active_panels_.push_back(panel);
102 void PanelManager::Remove(Panel* panel) {
105 panels_pending_to_remove_.push_back(panel);
109 DoRemove(panel);
118 void PanelManager::DoRemove(Panel* panel) {
119 // Checks the active panel list.
121 find(active_panels_.begin(), active_panels_.end(), panel);
123 // Checks the pending panel list.
125 find(pending_panels_.begin(), pending_panels_.end(), panel);
137 void PanelManager::StartDragging(Panel* panel) {
139 if (active_panels_[i] == panel) {
141 dragging_panel_bounds_ = panel->bounds();
154 // Moves this panel to the dragging position.
169 Panel* dragging_panel = active_panels_[dragging_panel_index_];
171 // This is the left corner of the dragging panel. We use it to check against
175 // This is the right corner which a panel will be moved to.
179 // Checks the panels to the left of the dragging panel.
183 // Current panel will only be affected if the left corner of dragging
184 // panel goes beyond the middle position of the current panel.
189 // Moves current panel to the new position.
195 // Adjusts the index of current panel.
199 // Adjusts the position and index of dragging panel as the result of moving
213 Panel* dragging_panel = active_panels_[dragging_panel_index_];
215 // This is the right corner of the dragging panel. We use it to check against
220 // This is the left corner which a panel will be moved to.
223 // Checks the panels to the right of the dragging panel.
227 // Current panel will only be affected if the right corner of dragging
228 // panel goes beyond the middle position of the current panel.
233 // Moves current panel to the new position.
239 // Adjusts the index of current panel.
243 // Adjusts the position and index of dragging panel as the result of moving