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

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

Issue 10908153: [Panel refactor] Deprecate old panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromeos test failure Created 8 years, 3 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 | Annotate | Revision Log
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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); 78 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds);
79 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); 79 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds);
80 80
81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); 81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel);
82 82
83 void WaitForPanelActiveState(Panel* panel, ActiveState state); 83 void WaitForPanelActiveState(Panel* panel, ActiveState state);
84 void WaitForWindowSizeAvailable(Panel* panel); 84 void WaitForWindowSizeAvailable(Panel* panel);
85 void WaitForBoundsAnimationFinished(Panel* panel); 85 void WaitForBoundsAnimationFinished(Panel* panel);
86 86
87 void CreateTestTabContents(Browser* browser);
88
89 scoped_refptr<extensions::Extension> CreateExtension( 87 scoped_refptr<extensions::Extension> CreateExtension(
90 const FilePath::StringType& path, 88 const FilePath::StringType& path,
91 extensions::Extension::Location location, 89 extensions::Extension::Location location,
92 const DictionaryValue& extra_value); 90 const DictionaryValue& extra_value);
93 91
94 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, 92 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
95 const gfx::Point& position); 93 const gfx::Point& position);
96 static void MoveMouse(const gfx::Point& position); 94 static void MoveMouse(const gfx::Point& position);
97 void CloseWindowAndWait(Panel* panel); 95 void CloseWindowAndWait(Panel* panel);
98 static std::string MakePanelName(int index); 96 static std::string MakePanelName(int index);
(...skipping 15 matching lines...) Expand all
114 static const FilePath::CharType* kTestDir; 112 static const FilePath::CharType* kTestDir;
115 113
116 private: 114 private:
117 // Passed to and owned by PanelManager. 115 // Passed to and owned by PanelManager.
118 MockDisplaySettingsProvider* mock_display_settings_provider_; 116 MockDisplaySettingsProvider* mock_display_settings_provider_;
119 117
120 bool mock_display_settings_enabled_; 118 bool mock_display_settings_enabled_;
121 }; 119 };
122 120
123 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 121 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698