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

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

Issue 8772029: Reunite PanelStrip::AddPanel and its internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 #endif 95 #endif
96 96
97 private: 97 private:
98 enum TitlebarAction { 98 enum TitlebarAction {
99 NO_ACTION, 99 NO_ACTION,
100 BRING_UP, 100 BRING_UP,
101 BRING_DOWN 101 BRING_DOWN
102 }; 102 };
103 103
104 // Helper functions to add a panel to the strip.
105 void AddNewPanel(Panel* panel);
106 void AddExistingPanel(Panel* panel);
107
108 // Keep track of the minimized panels to control mouse watching. 104 // Keep track of the minimized panels to control mouse watching.
109 void IncrementMinimizedPanels(); 105 void IncrementMinimizedPanels();
110 void DecrementMinimizedPanels(); 106 void DecrementMinimizedPanels();
111 107
112 // Handles all the panels that're delayed to be removed. 108 // Handles all the panels that're delayed to be removed.
113 void DelayedRemove(); 109 void DelayedRemove();
114 110
115 // Does the actual remove. Caller is responsible for rearranging 111 // Does the actual remove. Caller is responsible for rearranging
116 // the panel strip if necessary. 112 // the panel strip if necessary.
117 // Returns |false| if panel is not in the strip. 113 // Returns |false| if panel is not in the strip.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Absolute minimum width and height for panels, including non-client area. 186 // Absolute minimum width and height for panels, including non-client area.
191 // Should only be big enough to accomodate a close button on the reasonably 187 // Should only be big enough to accomodate a close button on the reasonably
192 // recognisable titlebar. 188 // recognisable titlebar.
193 static const int kPanelMinWidth; 189 static const int kPanelMinWidth;
194 static const int kPanelMinHeight; 190 static const int kPanelMinHeight;
195 191
196 DISALLOW_COPY_AND_ASSIGN(PanelStrip); 192 DISALLOW_COPY_AND_ASSIGN(PanelStrip);
197 }; 193 };
198 194
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_ 195 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698