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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void WaitForBoundsAnimationFinished(Panel* panel); | 88 void WaitForBoundsAnimationFinished(Panel* panel); |
89 void WaitForExpansionStateChanged(Panel* panel, | 89 void WaitForExpansionStateChanged(Panel* panel, |
90 Panel::ExpansionState expansion_state); | 90 Panel::ExpansionState expansion_state); |
91 | 91 |
92 void CreateTestTabContents(Browser* browser); | 92 void CreateTestTabContents(Browser* browser); |
93 | 93 |
94 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, | 94 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, |
95 Extension::Location location, | 95 Extension::Location location, |
96 const DictionaryValue& extra_value); | 96 const DictionaryValue& extra_value); |
97 | 97 |
| 98 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, |
| 99 const gfx::Point& position); |
98 static void MoveMouse(const gfx::Point& position); | 100 static void MoveMouse(const gfx::Point& position); |
99 void CloseWindowAndWait(Browser* browser); | 101 void CloseWindowAndWait(Browser* browser); |
100 static std::string MakePanelName(int index); | 102 static std::string MakePanelName(int index); |
101 | 103 |
102 void SetTestingWorkArea(const gfx::Rect& work_area); | 104 void SetTestingWorkArea(const gfx::Rect& work_area); |
103 | 105 |
104 MockDisplaySettingsProvider* mock_display_settings_provider() const { | 106 MockDisplaySettingsProvider* mock_display_settings_provider() const { |
105 return mock_display_settings_provider_; | 107 return mock_display_settings_provider_; |
106 } | 108 } |
107 | 109 |
108 static const FilePath::CharType* kTestDir; | 110 static const FilePath::CharType* kTestDir; |
109 private: | 111 private: |
110 // Passed to and owned by PanelManager. | 112 // Passed to and owned by PanelManager. |
111 MockDisplaySettingsProvider* mock_display_settings_provider_; | 113 MockDisplaySettingsProvider* mock_display_settings_provider_; |
112 }; | 114 }; |
113 | 115 |
114 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 116 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
OLD | NEW |