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

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

Issue 12764018: Improve panel related tests to make them more reliable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 9 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_COLLECTION_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE; 132 virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE;
133 133
134 // Overridden from DisplaySettingsProvider::DesktopBarObserver: 134 // Overridden from DisplaySettingsProvider::DesktopBarObserver:
135 virtual void OnAutoHidingDesktopBarVisibilityChanged( 135 virtual void OnAutoHidingDesktopBarVisibilityChanged(
136 DisplaySettingsProvider::DesktopBarAlignment alignment, 136 DisplaySettingsProvider::DesktopBarAlignment alignment,
137 DisplaySettingsProvider::DesktopBarVisibility visibility) OVERRIDE; 137 DisplaySettingsProvider::DesktopBarVisibility visibility) OVERRIDE;
138 virtual void OnAutoHidingDesktopBarThicknessChanged( 138 virtual void OnAutoHidingDesktopBarThicknessChanged(
139 DisplaySettingsProvider::DesktopBarAlignment alignment, 139 DisplaySettingsProvider::DesktopBarAlignment alignment,
140 int thickness) OVERRIDE; 140 int thickness) OVERRIDE;
141 141
142 // Schedules a layout refresh with a short delay to avoid too much flicker.
143 void ScheduleLayoutRefresh();
144
145 // Keep track of the minimized panels to control mouse watching. 142 // Keep track of the minimized panels to control mouse watching.
146 void UpdateMinimizedPanelCount(); 143 void UpdateMinimizedPanelCount();
147 144
148 // Minimizes or restores all panels in the collection. 145 // Minimizes or restores all panels in the collection.
149 void MinimizeAll(); 146 void MinimizeAll();
150 void RestoreAll(); 147 void RestoreAll();
151 148
152 // Makes sure the panel's bounds reflect its expansion state and the 149 // Makes sure the panel's bounds reflect its expansion state and the
153 // panel is aligned at the bottom of the screen. Does not touch the x 150 // panel is aligned at the bottom of the screen. Does not touch the x
154 // coordinate. 151 // coordinate.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 184
188 // Used to save the placement information for a panel. 185 // Used to save the placement information for a panel.
189 PanelPlacement saved_panel_placement_; 186 PanelPlacement saved_panel_placement_;
190 187
191 static const int kPanelsHorizontalSpacing = 4; 188 static const int kPanelsHorizontalSpacing = 4;
192 189
193 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection); 190 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection);
194 }; 191 };
195 192
196 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ 193 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_browsertest.cc ('k') | chrome/browser/ui/panels/docked_panel_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698