Home | History | Annotate | Download | only in panels

Lines Matching defs:panels

22 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
23 #include "chrome/browser/ui/panels/docked_panel_collection.h"
24 #include "chrome/browser/ui/panels/native_panel.h"
25 #include "chrome/browser/ui/panels/panel.h"
26 #include "chrome/browser/ui/panels/panel_manager.h"
27 #include "chrome/browser/ui/panels/test_panel_active_state_observer.h"
57 const std::vector<Panel*>& panels = PanelManager::GetInstance()->panels();
59 for (size_t i = 0; i < panels.size(); ++i) {
61 << ", ptr=" << panels[i]
62 << ", x=" << panels[i]->GetBounds().x()
63 << ", y=" << panels[i]->GetBounds().y()
64 << ", width=" << panels[i]->GetBounds().width()
65 << ", height" << panels[i]->GetBounds().height();
70 std::vector<Panel*> panels = PanelManager::GetInstance()->panels();
72 for (size_t i = 0; i < panels.size(); i++)
73 bounds.push_back(panels[i]->GetBounds());
86 std::vector<Panel*> panels = PanelManager::GetInstance()->panels();
88 for (size_t i = 0; i < panels.size(); i++)
89 expansion_states.push_back(panels[i]->expansion_state());
94 std::vector<Panel*> panels = PanelManager::GetInstance()->panels();
96 for (size_t i = 0; i < panels.size(); i++)
97 active_states.push_back(panels[i]->IsActive());
103 std::vector<Panel*> panels = PanelManager::GetInstance()->panels();
105 for (int i = 0; i < static_cast<int>(panels.size()); i++)
113 std::vector<Panel*> panels = PanelManager::GetInstance()->panels();
117 panels[i], new_states[i] ? SHOW_AS_ACTIVE : SHOW_AS_INACTIVE);
130 std::vector<Panel*> panels = panel_manager->panels();
134 panels.size(), Panel::EXPANDED);
135 std::vector<NativePanelTesting*> native_panels_testing(panels.size());
136 for (size_t i = 0; i < panels.size(); ++i) {
137 native_panels_testing[i] = CreateNativePanelTesting(panels[i]);
141 for (size_t index = 0; index < panels.size(); ++index) {
144 panels[index]->GetBounds().origin());
154 // Minimize all panels for next stage in test.
155 for (size_t index = 0; index < panels.size(); ++index) {
156 panels[index]->Minimize();
169 panels.size(), Panel::TITLE_ONLY);
172 panels.size(), Panel::MINIMIZED);
174 for (size_t index = 0; index < panels.size(); ++index) {
176 panels[index]->native_panel()->TitleOnlyHeight());
180 panels[index]->native_panel()->TitleOnlyHeight());
183 // Test hover. All panels are currently in minimized state.
185 for (size_t index = 0; index < panels.size(); ++index) {
187 // Verify titlebar is exposed on all panels.
188 gfx::Point hover_point(panels[index]->GetBounds().origin());
189 MoveMouseAndWaitForExpansionStateChange(panels[index], hover_point);
193 // Hover mouse above the panel. Verify all panels are minimized.
195 panels[index]->GetBounds().y() - kFarEnoughFromHoverArea);
196 MoveMouseAndWaitForExpansionStateChange(panels[index], hover_point);
201 // Verify titlebar is exposed on all panels.
202 hover_point.set_y(panels[index]->GetBounds().y() +
203 panels[index]->GetBounds().height() + 5);
204 MoveMouseAndWaitForExpansionStateChange(panels[index], hover_point);
209 hover_point.set_y(panels[index]->GetBounds().y() +
210 panels[index]->GetBounds().height() + 6);
215 // Hover mouse above panel. Verify all panels are minimized.
217 panels[index]->GetBounds().y() - kFarEnoughFromHoverArea);
218 MoveMouseAndWaitForExpansionStateChange(panels[index], hover_point);
223 // Test restore. All panels are currently in minimized state.
224 for (size_t index = 0; index < panels.size(); ++index) {
227 if (index == panels.size() - 1)
233 panels[index]->GetBounds().origin());
244 if (index == panels.size() - 1)
252 for (size_t i = 0; i < panels.size(); ++i)
261 // Create 3 docked panels that are in expanded, title-only or minimized states
324 EXPECT_EQ(0, panel_manager->num_panels()); // No panels initially.
607 // Test with two panels.
616 // Test with three panels.
626 // Test with three panels.
652 // Minimize all panels by clicking minimize button on an expanded panel
665 // Restore all panels by clicking restore button on a minimized panel.
679 // Test with three panels.
717 // Verify all panels restored when mouse is released.
738 // modifier to restore all panels.
779 // title-only mode. Should restore all panels.
818 // Restore all panels by clicking on the minimized panel that is drawing
976 // Switch focus between panels.
1026 // Create 4 panels in the following screen layout:
1031 const std::vector<Panel*>& panels = PanelManager::GetInstance()->panels();
1042 panels[1]->Activate();
1048 // Minimizing inactive panel P2 should not affect other panels' active states.
1049 panels[2]->SetExpansionState(Panel::MINIMIZED);
1128 // is stopped when there are other minimized panels.
1163 // Move mouse away. All panels should return to minimized state.
1190 // Move mouse away and panels should go back to fully minimized state.
1337 // When there are 2 panels and no chrome window, minimizing one panel does
1431 // Wait for the panels opened by the first extension to close.
1436 EXPECT_EQ(panel_other, panel_manager->panels()[0]);
1442 EXPECT_EQ(0, panel_manager->num_panels()); // No panels initially.
1730 // Aura panels have different behavior that do not apply to this test.
1737 // This is needed so the subsequently created panels can be activated.
1740 ASSERT_TRUE(RunExtensionTest("panels/focus_change_on_minimize")) << message_;