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 24 matching lines...) Expand all Loading... |
35 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 35 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
36 virtual void SetUpOnMainThread() OVERRIDE; | 36 virtual void SetUpOnMainThread() OVERRIDE; |
37 | 37 |
38 protected: | 38 protected: |
39 enum ShowFlag { SHOW_AS_ACTIVE, SHOW_AS_INACTIVE }; | 39 enum ShowFlag { SHOW_AS_ACTIVE, SHOW_AS_INACTIVE }; |
40 | 40 |
41 struct CreatePanelParams { | 41 struct CreatePanelParams { |
42 std::string name; | 42 std::string name; |
43 gfx::Rect bounds; | 43 gfx::Rect bounds; |
44 ShowFlag show_flag; | 44 ShowFlag show_flag; |
| 45 GURL url; |
45 | 46 |
46 CreatePanelParams(const std::string& name, | 47 CreatePanelParams(const std::string& name, |
47 const gfx::Rect& bounds, | 48 const gfx::Rect& bounds, |
48 ShowFlag show_flag) | 49 ShowFlag show_flag) |
49 : name(name), | 50 : name(name), |
50 bounds(bounds), | 51 bounds(bounds), |
51 show_flag(show_flag) { | 52 show_flag(show_flag) { |
52 } | 53 } |
53 }; | 54 }; |
54 | 55 |
(...skipping 12 matching lines...) Expand all Loading... |
67 return mock_auto_hiding_desktop_bar_.get(); | 68 return mock_auto_hiding_desktop_bar_.get(); |
68 } | 69 } |
69 | 70 |
70 private: | 71 private: |
71 | 72 |
72 gfx::Rect testing_work_area_; | 73 gfx::Rect testing_work_area_; |
73 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; | 74 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ | 77 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ |
OLD | NEW |