| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); | 81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); |
| 82 | 82 |
| 83 void WaitForPanelActiveState(Panel* panel, ActiveState state); | 83 void WaitForPanelActiveState(Panel* panel, ActiveState state); |
| 84 void WaitForWindowSizeAvailable(Panel* panel); | 84 void WaitForWindowSizeAvailable(Panel* panel); |
| 85 void WaitForBoundsAnimationFinished(Panel* panel); | 85 void WaitForBoundsAnimationFinished(Panel* panel); |
| 86 | 86 |
| 87 scoped_refptr<extensions::Extension> CreateExtension( | 87 scoped_refptr<extensions::Extension> CreateExtension( |
| 88 const FilePath::StringType& path, | 88 const FilePath::StringType& path, |
| 89 extensions::Extension::Location location, | 89 extensions::Extension::Location location, |
| 90 const DictionaryValue& extra_value); | 90 const DictionaryValue& extra_value); |
| 91 scoped_refptr<extensions::Extension> LoadExtensionFromManifest( |
| 92 const FilePath::StringType& manifest_file); |
| 91 | 93 |
| 92 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, | 94 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, |
| 93 const gfx::Point& position); | 95 const gfx::Point& position); |
| 94 static void MoveMouse(const gfx::Point& position); | 96 static void MoveMouse(const gfx::Point& position); |
| 95 void CloseWindowAndWait(Panel* panel); | 97 void CloseWindowAndWait(Panel* panel); |
| 96 static std::string MakePanelName(int index); | 98 static std::string MakePanelName(int index); |
| 97 | 99 |
| 98 // |primary_screen_area| must contain |work_area|. If empty rect is passed | 100 // |primary_screen_area| must contain |work_area|. If empty rect is passed |
| 99 // to |work_area|, it will be set to same as |primary_screen_area|. | 101 // to |work_area|, it will be set to same as |primary_screen_area|. |
| 100 void SetTestingAreas(const gfx::Rect& primary_screen_area, | 102 void SetTestingAreas(const gfx::Rect& primary_screen_area, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 112 static const FilePath::CharType* kTestDir; | 114 static const FilePath::CharType* kTestDir; |
| 113 | 115 |
| 114 private: | 116 private: |
| 115 // Passed to and owned by PanelManager. | 117 // Passed to and owned by PanelManager. |
| 116 MockDisplaySettingsProvider* mock_display_settings_provider_; | 118 MockDisplaySettingsProvider* mock_display_settings_provider_; |
| 117 | 119 |
| 118 bool mock_display_settings_enabled_; | 120 bool mock_display_settings_enabled_; |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 123 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| OLD | NEW |