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 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/ui/panels/display_settings_provider.h" | 10 #include "chrome/browser/ui/panels/display_settings_provider.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Panel* CreatePanel(const std::string& panel_name); | 75 Panel* CreatePanel(const std::string& panel_name); |
76 | 76 |
77 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); | 77 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); |
78 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); | 78 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); |
79 | 79 |
80 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); | 80 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); |
81 | 81 |
82 void WaitForPanelActiveState(Panel* panel, ActiveState state); | 82 void WaitForPanelActiveState(Panel* panel, ActiveState state); |
83 void WaitForWindowSizeAvailable(Panel* panel); | 83 void WaitForWindowSizeAvailable(Panel* panel); |
84 void WaitForBoundsAnimationFinished(Panel* panel); | 84 void WaitForBoundsAnimationFinished(Panel* panel); |
85 void WaitForExpansionStateChanged(Panel* panel, | |
86 Panel::ExpansionState expansion_state); | |
87 | 85 |
88 void CreateTestTabContents(Browser* browser); | 86 void CreateTestTabContents(Browser* browser); |
89 | 87 |
90 scoped_refptr<extensions::Extension> CreateExtension( | 88 scoped_refptr<extensions::Extension> CreateExtension( |
91 const FilePath::StringType& path, | 89 const FilePath::StringType& path, |
92 extensions::Extension::Location location, | 90 extensions::Extension::Location location, |
93 const DictionaryValue& extra_value); | 91 const DictionaryValue& extra_value); |
94 | 92 |
95 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, | 93 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, |
96 const gfx::Point& position); | 94 const gfx::Point& position); |
(...skipping 18 matching lines...) Expand all Loading... |
115 static const FilePath::CharType* kTestDir; | 113 static const FilePath::CharType* kTestDir; |
116 | 114 |
117 private: | 115 private: |
118 // Passed to and owned by PanelManager. | 116 // Passed to and owned by PanelManager. |
119 MockDisplaySettingsProvider* mock_display_settings_provider_; | 117 MockDisplaySettingsProvider* mock_display_settings_provider_; |
120 | 118 |
121 bool mock_display_settings_enabled_; | 119 bool mock_display_settings_enabled_; |
122 }; | 120 }; |
123 | 121 |
124 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 122 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
OLD | NEW |