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 Panel* CreateOverflowPanel(const std::string& name, const gfx::Rect& bounds); | |
jennb
2012/03/12 22:43:00
Should comment that the caller is responsible for
jianli
2012/03/13 00:21:40
Done.
| |
86 | |
83 void WaitForPanelAdded(Panel* panel); | 87 void WaitForPanelAdded(Panel* panel); |
84 void WaitForPanelRemoved(Panel* panel); | 88 void WaitForPanelRemoved(Panel* panel); |
85 void WaitForPanelActiveState(Panel* panel, ActiveState state); | 89 void WaitForPanelActiveState(Panel* panel, ActiveState state); |
86 void WaitForWindowSizeAvailable(Panel* panel); | 90 void WaitForWindowSizeAvailable(Panel* panel); |
87 void WaitForBoundsAnimationFinished(Panel* panel); | 91 void WaitForBoundsAnimationFinished(Panel* panel); |
88 void WaitForLayoutModeChanged(Panel* panel, PanelStrip::Type layout_type); | 92 void WaitForLayoutModeChanged(Panel* panel, PanelStrip::Type layout_type); |
89 void WaitForExpansionStateChanged(Panel* panel, | 93 void WaitForExpansionStateChanged(Panel* panel, |
90 Panel::ExpansionState expansion_state); | 94 Panel::ExpansionState expansion_state); |
91 | 95 |
92 void CreateTestTabContents(Browser* browser); | 96 void CreateTestTabContents(Browser* browser); |
(...skipping 13 matching lines...) Expand all Loading... | |
106 return mock_display_settings_provider_; | 110 return mock_display_settings_provider_; |
107 } | 111 } |
108 | 112 |
109 static const FilePath::CharType* kTestDir; | 113 static const FilePath::CharType* kTestDir; |
110 private: | 114 private: |
111 // Passed to and owned by PanelManager. | 115 // Passed to and owned by PanelManager. |
112 MockDisplaySettingsProvider* mock_display_settings_provider_; | 116 MockDisplaySettingsProvider* mock_display_settings_provider_; |
113 }; | 117 }; |
114 | 118 |
115 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 119 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
OLD | NEW |