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

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

Issue 10384192: Prevent title-only panel from fully minimizing when attention is cleared if mouse is in the panel o… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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_DOCKED_PANEL_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Makes sure the panel's bounds reflect its expansion state and the 157 // Makes sure the panel's bounds reflect its expansion state and the
158 // panel is aligned at the bottom of the strip. Does not touch the x 158 // panel is aligned at the bottom of the strip. Does not touch the x
159 // coordinate. 159 // coordinate.
160 void AdjustPanelBoundsPerExpansionState(Panel* panel, 160 void AdjustPanelBoundsPerExpansionState(Panel* panel,
161 gfx::Rect* panel_bounds); 161 gfx::Rect* panel_bounds);
162 162
163 // Help functions to drag the given panel. 163 // Help functions to drag the given panel.
164 void DragLeft(Panel* dragging_panel); 164 void DragLeft(Panel* dragging_panel);
165 void DragRight(Panel* dragging_panel); 165 void DragRight(Panel* dragging_panel);
166 166
167 // Returns true if the mouse is currently in the |panel|.
168 bool IsMouseInPanel(const Panel* panel) const;
169
167 // Does the real job of bringing up or down the titlebars. 170 // Does the real job of bringing up or down the titlebars.
168 void DoBringUpOrDownTitlebars(bool bring_up); 171 void DoBringUpOrDownTitlebars(bool bring_up);
169 // The callback for a delyed task, checks if it still need to perform 172 // The callback for a delyed task, checks if it still need to perform
170 // the delayed action. 173 // the delayed action.
171 void DelayedBringUpOrDownTitlebarsCheck(); 174 void DelayedBringUpOrDownTitlebarsCheck();
172 175
173 int GetRightMostAvailablePosition() const; 176 int GetRightMostAvailablePosition() const;
174 177
175 PanelManager* panel_manager_; // Weak, owns us. 178 PanelManager* panel_manager_; // Weak, owns us.
176 179
(...skipping 29 matching lines...) Expand all
206 // Absolute minimum width and height for panels, including non-client area. 209 // Absolute minimum width and height for panels, including non-client area.
207 // Should only be big enough to accomodate a close button on the reasonably 210 // Should only be big enough to accomodate a close button on the reasonably
208 // recognisable titlebar. 211 // recognisable titlebar.
209 static const int kPanelMinWidth; 212 static const int kPanelMinWidth;
210 static const int kPanelMinHeight; 213 static const int kPanelMinHeight;
211 214
212 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); 215 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip);
213 }; 216 };
214 217
215 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 218 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698