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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 struct CreatePanelParams { | 59 struct CreatePanelParams { |
60 std::string name; | 60 std::string name; |
61 gfx::Rect bounds; | 61 gfx::Rect bounds; |
62 ActiveState show_flag; | 62 ActiveState show_flag; |
63 GURL url; | 63 GURL url; |
64 bool wait_for_fully_created; | 64 bool wait_for_fully_created; |
65 ActiveState expected_active_state; | 65 ActiveState expected_active_state; |
66 | 66 |
67 CreatePanelParams(const std::string& name, | 67 CreatePanelParams(const std::string& name, |
68 const gfx::Rect& bounds, | 68 const gfx::Rect& bounds, |
69 ActiveState show_flag) | 69 ActiveState show_flag); |
70 : name(name), | |
71 bounds(bounds), | |
72 show_flag(show_flag), | |
73 wait_for_fully_created(true), | |
74 expected_active_state(show_flag) { | |
75 } | |
76 }; | 70 }; |
77 | 71 |
78 Panel* CreatePanelWithParams(const CreatePanelParams& params); | 72 Panel* CreatePanelWithParams(const CreatePanelParams& params); |
79 Panel* CreatePanelWithBounds(const std::string& panel_name, | 73 Panel* CreatePanelWithBounds(const std::string& panel_name, |
80 const gfx::Rect& bounds); | 74 const gfx::Rect& bounds); |
81 Panel* CreatePanel(const std::string& panel_name); | 75 Panel* CreatePanel(const std::string& panel_name); |
82 | 76 |
83 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); | 77 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); |
84 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); | 78 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); |
85 | 79 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 static const FilePath::CharType* kTestDir; | 115 static const FilePath::CharType* kTestDir; |
122 | 116 |
123 private: | 117 private: |
124 // Passed to and owned by PanelManager. | 118 // Passed to and owned by PanelManager. |
125 MockDisplaySettingsProvider* mock_display_settings_provider_; | 119 MockDisplaySettingsProvider* mock_display_settings_provider_; |
126 | 120 |
127 bool mock_display_settings_enabled_; | 121 bool mock_display_settings_enabled_; |
128 }; | 122 }; |
129 | 123 |
130 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 124 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
OLD | NEW |