| 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/values.h" | 9 #include "base/values.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 Panel* CreatePanelWithParams(const CreatePanelParams& params); | 56 Panel* CreatePanelWithParams(const CreatePanelParams& params); |
| 57 Panel* CreatePanelWithBounds(const std::string& panel_name, | 57 Panel* CreatePanelWithBounds(const std::string& panel_name, |
| 58 const gfx::Rect& bounds); | 58 const gfx::Rect& bounds); |
| 59 Panel* CreatePanel(const std::string& panel_name); | 59 Panel* CreatePanel(const std::string& panel_name); |
| 60 | 60 |
| 61 void WaitForPanelAdded(Panel* panel); | 61 void WaitForPanelAdded(Panel* panel); |
| 62 void WaitForPanelRemoved(Panel* panel); | 62 void WaitForPanelRemoved(Panel* panel); |
| 63 void WaitForPanelActiveState(Panel* panel, ActiveState state); | 63 void WaitForPanelActiveState(Panel* panel, ActiveState state); |
| 64 void WaitForWindowSizeAvailable(Panel* panel); | 64 void WaitForWindowSizeAvailable(Panel* panel); |
| 65 void WaitForBoundsAnimationFinished(Panel* panel); | 65 void WaitForBoundsAnimationFinished(Panel* panel); |
| 66 void WaitForStripOwnerChanged(Panel* panel, |
| 67 Panel::StripOwner strip_owner); |
| 66 void WaitForExpansionStateChanged(Panel* panel, | 68 void WaitForExpansionStateChanged(Panel* panel, |
| 67 Panel::ExpansionState expansion_state); | 69 Panel::ExpansionState expansion_state); |
| 68 | 70 |
| 69 void CreateTestTabContents(Browser* browser); | 71 void CreateTestTabContents(Browser* browser); |
| 70 | 72 |
| 71 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, | 73 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, |
| 72 Extension::Location location, | 74 Extension::Location location, |
| 73 const DictionaryValue& extra_value); | 75 const DictionaryValue& extra_value); |
| 74 | 76 |
| 75 static void MoveMouse(const gfx::Point& position); | 77 static void MoveMouse(const gfx::Point& position); |
| 76 static void CloseWindowAndWait(Browser* browser); | 78 static void CloseWindowAndWait(Browser* browser); |
| 77 static std::string MakePanelName(int index); | 79 static std::string MakePanelName(int index); |
| 78 | 80 |
| 79 gfx::Rect testing_work_area() const { return testing_work_area_; } | 81 gfx::Rect testing_work_area() const { return testing_work_area_; } |
| 80 void set_testing_work_area(const gfx::Rect& work_area) { | 82 void set_testing_work_area(const gfx::Rect& work_area) { |
| 81 testing_work_area_ = work_area; | 83 testing_work_area_ = work_area; |
| 82 } | 84 } |
| 83 | 85 |
| 84 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { | 86 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { |
| 85 return mock_auto_hiding_desktop_bar_.get(); | 87 return mock_auto_hiding_desktop_bar_.get(); |
| 86 } | 88 } |
| 87 | 89 |
| 88 static const FilePath::CharType* kTestDir; | 90 static const FilePath::CharType* kTestDir; |
| 89 private: | 91 private: |
| 90 gfx::Rect testing_work_area_; | 92 gfx::Rect testing_work_area_; |
| 91 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; | 93 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 96 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
| OLD | NEW |