Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: chrome/browser/ui/panels/base_panel_browser_test.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void WaitForPanelAdded(Panel* panel); 85 void WaitForPanelAdded(Panel* panel);
86 void WaitForPanelRemoved(Panel* panel); 86 void WaitForPanelRemoved(Panel* panel);
87 void WaitForPanelActiveState(Panel* panel, ActiveState state); 87 void WaitForPanelActiveState(Panel* panel, ActiveState state);
88 void WaitForWindowSizeAvailable(Panel* panel); 88 void WaitForWindowSizeAvailable(Panel* panel);
89 void WaitForBoundsAnimationFinished(Panel* panel); 89 void WaitForBoundsAnimationFinished(Panel* panel);
90 void WaitForExpansionStateChanged(Panel* panel, 90 void WaitForExpansionStateChanged(Panel* panel,
91 Panel::ExpansionState expansion_state); 91 Panel::ExpansionState expansion_state);
92 92
93 void CreateTestTabContents(Browser* browser); 93 void CreateTestTabContents(Browser* browser);
94 94
95 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, 95 scoped_refptr<extensions::Extension> CreateExtension(
96 Extension::Location location, 96 const FilePath::StringType& path,
97 const DictionaryValue& extra_value); 97 extensions::Extension::Location location,
98 const DictionaryValue& extra_value);
98 99
99 static void MoveMouse(const gfx::Point& position); 100 static void MoveMouse(const gfx::Point& position);
100 void CloseWindowAndWait(Browser* browser); 101 void CloseWindowAndWait(Browser* browser);
101 static std::string MakePanelName(int index); 102 static std::string MakePanelName(int index);
102 103
103 // |primary_screen_area| must contain |work_area|. If empty rect is passed 104 // |primary_screen_area| must contain |work_area|. If empty rect is passed
104 // to |work_area|, it will be set to same as |primary_screen_area|. 105 // to |work_area|, it will be set to same as |primary_screen_area|.
105 void SetTestingAreas(const gfx::Rect& primary_screen_area, 106 void SetTestingAreas(const gfx::Rect& primary_screen_area,
106 const gfx::Rect& work_area); 107 const gfx::Rect& work_area);
107 108
108 MockDisplaySettingsProvider* mock_display_settings_provider() const { 109 MockDisplaySettingsProvider* mock_display_settings_provider() const {
109 return mock_display_settings_provider_; 110 return mock_display_settings_provider_;
110 } 111 }
111 112
112 // Some tests might not want to use the mock version. 113 // Some tests might not want to use the mock version.
113 void disable_display_settings_mock() { 114 void disable_display_settings_mock() {
114 mock_display_settings_enabled_ = false; 115 mock_display_settings_enabled_ = false;
115 } 116 }
116 117
117 static const FilePath::CharType* kTestDir; 118 static const FilePath::CharType* kTestDir;
118 119
119 private: 120 private:
120 // Passed to and owned by PanelManager. 121 // Passed to and owned by PanelManager.
121 MockDisplaySettingsProvider* mock_display_settings_provider_; 122 MockDisplaySettingsProvider* mock_display_settings_provider_;
122 123
123 bool mock_display_settings_enabled_; 124 bool mock_display_settings_enabled_;
124 }; 125 };
125 126
126 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 127 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698