| OLD | NEW |
| 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_BASE_PANEL_BROWSER_TEST_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 6 #define CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 wait_for_fully_created(true), | 73 wait_for_fully_created(true), |
| 74 expected_active_state(show_flag) { | 74 expected_active_state(show_flag) { |
| 75 } | 75 } |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 Panel* CreatePanelWithParams(const CreatePanelParams& params); | 78 Panel* CreatePanelWithParams(const CreatePanelParams& params); |
| 79 Panel* CreatePanelWithBounds(const std::string& panel_name, | 79 Panel* CreatePanelWithBounds(const std::string& panel_name, |
| 80 const gfx::Rect& bounds); | 80 const gfx::Rect& bounds); |
| 81 Panel* CreatePanel(const std::string& panel_name); | 81 Panel* CreatePanel(const std::string& panel_name); |
| 82 | 82 |
| 83 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); |
| 84 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); |
| 85 // The caller should have already created enough docked panels to trigger |
| 86 // overflow. |
| 87 Panel* CreateOverflowPanel(const std::string& name, const gfx::Rect& bounds); |
| 88 |
| 83 void WaitForPanelAdded(Panel* panel); | 89 void WaitForPanelAdded(Panel* panel); |
| 84 void WaitForPanelRemoved(Panel* panel); | 90 void WaitForPanelRemoved(Panel* panel); |
| 85 void WaitForPanelActiveState(Panel* panel, ActiveState state); | 91 void WaitForPanelActiveState(Panel* panel, ActiveState state); |
| 86 void WaitForWindowSizeAvailable(Panel* panel); | 92 void WaitForWindowSizeAvailable(Panel* panel); |
| 87 void WaitForBoundsAnimationFinished(Panel* panel); | 93 void WaitForBoundsAnimationFinished(Panel* panel); |
| 88 void WaitForLayoutModeChanged(Panel* panel, PanelStrip::Type layout_type); | 94 void WaitForLayoutModeChanged(Panel* panel, PanelStrip::Type layout_type); |
| 89 void WaitForExpansionStateChanged(Panel* panel, | 95 void WaitForExpansionStateChanged(Panel* panel, |
| 90 Panel::ExpansionState expansion_state); | 96 Panel::ExpansionState expansion_state); |
| 91 | 97 |
| 92 void CreateTestTabContents(Browser* browser); | 98 void CreateTestTabContents(Browser* browser); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 106 return mock_display_settings_provider_; | 112 return mock_display_settings_provider_; |
| 107 } | 113 } |
| 108 | 114 |
| 109 static const FilePath::CharType* kTestDir; | 115 static const FilePath::CharType* kTestDir; |
| 110 private: | 116 private: |
| 111 // Passed to and owned by PanelManager. | 117 // Passed to and owned by PanelManager. |
| 112 MockDisplaySettingsProvider* mock_display_settings_provider_; | 118 MockDisplaySettingsProvider* mock_display_settings_provider_; |
| 113 }; | 119 }; |
| 114 | 120 |
| 115 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 121 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| OLD | NEW |