| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/task.h" | 9 #include "base/task.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void WaitForWindowSizeAvailable(Panel* panel); | 62 void WaitForWindowSizeAvailable(Panel* panel); |
| 63 void WaitForBoundsAnimationFinished(Panel* panel); | 63 void WaitForBoundsAnimationFinished(Panel* panel); |
| 64 | 64 |
| 65 void CreateTestTabContents(Browser* browser); | 65 void CreateTestTabContents(Browser* browser); |
| 66 | 66 |
| 67 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, | 67 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, |
| 68 Extension::Location location, | 68 Extension::Location location, |
| 69 const DictionaryValue& extra_value); | 69 const DictionaryValue& extra_value); |
| 70 | 70 |
| 71 gfx::Rect testing_work_area() const { return testing_work_area_; } | 71 gfx::Rect testing_work_area() const { return testing_work_area_; } |
| 72 void set_testing_work_area(const gfx::Rect& work_area) { |
| 73 testing_work_area_ = work_area; |
| 74 } |
| 72 | 75 |
| 73 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { | 76 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { |
| 74 return mock_auto_hiding_desktop_bar_.get(); | 77 return mock_auto_hiding_desktop_bar_.get(); |
| 75 } | 78 } |
| 76 | 79 |
| 77 private: | 80 private: |
| 78 gfx::Rect testing_work_area_; | 81 gfx::Rect testing_work_area_; |
| 79 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; | 82 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 85 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| OLD | NEW |