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

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 6 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 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, 100 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
100 const gfx::Point& position); 101 const gfx::Point& position);
101 static void MoveMouse(const gfx::Point& position); 102 static void MoveMouse(const gfx::Point& position);
102 void CloseWindowAndWait(Browser* browser); 103 void CloseWindowAndWait(Browser* browser);
103 static std::string MakePanelName(int index); 104 static std::string MakePanelName(int index);
104 105
105 // |primary_screen_area| must contain |work_area|. If empty rect is passed 106 // |primary_screen_area| must contain |work_area|. If empty rect is passed
106 // to |work_area|, it will be set to same as |primary_screen_area|. 107 // to |work_area|, it will be set to same as |primary_screen_area|.
107 void SetTestingAreas(const gfx::Rect& primary_screen_area, 108 void SetTestingAreas(const gfx::Rect& primary_screen_area,
(...skipping 11 matching lines...) Expand all
119 static const FilePath::CharType* kTestDir; 120 static const FilePath::CharType* kTestDir;
120 121
121 private: 122 private:
122 // Passed to and owned by PanelManager. 123 // Passed to and owned by PanelManager.
123 MockDisplaySettingsProvider* mock_display_settings_provider_; 124 MockDisplaySettingsProvider* mock_display_settings_provider_;
124 125
125 bool mock_display_settings_enabled_; 126 bool mock_display_settings_enabled_;
126 }; 127 };
127 128
128 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 129 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698