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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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"
11 #include "chrome/browser/ui/panels/panel.h" 11 #include "chrome/browser/ui/panels/panel.h"
12 #include "chrome/browser/ui/panels/panel_manager.h" 12 #include "chrome/browser/ui/panels/panel_manager.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/manifest.h"
14 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
15 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
16 17
17 class NativePanelTesting; 18 class NativePanelTesting;
18 class StackedPanelCollection; 19 class StackedPanelCollection;
19 20
20 class BasePanelBrowserTest : public InProcessBrowserTest { 21 class BasePanelBrowserTest : public InProcessBrowserTest {
21 public: 22 public:
22 class MockDisplaySettingsProvider : public DisplaySettingsProvider { 23 class MockDisplaySettingsProvider : public DisplaySettingsProvider {
23 public: 24 public:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 StackedPanelCollection* stack); 84 StackedPanelCollection* stack);
84 85
85 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); 86 static NativePanelTesting* CreateNativePanelTesting(Panel* panel);
86 87
87 void WaitForPanelActiveState(Panel* panel, ActiveState state); 88 void WaitForPanelActiveState(Panel* panel, ActiveState state);
88 void WaitForWindowSizeAvailable(Panel* panel); 89 void WaitForWindowSizeAvailable(Panel* panel);
89 void WaitForBoundsAnimationFinished(Panel* panel); 90 void WaitForBoundsAnimationFinished(Panel* panel);
90 91
91 scoped_refptr<extensions::Extension> CreateExtension( 92 scoped_refptr<extensions::Extension> CreateExtension(
92 const FilePath::StringType& path, 93 const FilePath::StringType& path,
93 extensions::Extension::Location location, 94 extensions::Manifest::Location location,
94 const DictionaryValue& extra_value); 95 const DictionaryValue& extra_value);
95 96
96 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, 97 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
97 const gfx::Point& position); 98 const gfx::Point& position);
98 static void MoveMouse(const gfx::Point& position); 99 static void MoveMouse(const gfx::Point& position);
99 void CloseWindowAndWait(Panel* panel); 100 void CloseWindowAndWait(Panel* panel);
100 static std::string MakePanelName(int index); 101 static std::string MakePanelName(int index);
101 102
102 // |primary_screen_area| must contain |work_area|. If empty rect is passed 103 // |primary_screen_area| must contain |work_area|. If empty rect is passed
103 // to |work_area|, it will be set to same as |primary_screen_area|. 104 // to |work_area|, it will be set to same as |primary_screen_area|.
(...skipping 12 matching lines...) Expand all
116 static const FilePath::CharType* kTestDir; 117 static const FilePath::CharType* kTestDir;
117 118
118 private: 119 private:
119 // Passed to and owned by PanelManager. 120 // Passed to and owned by PanelManager.
120 MockDisplaySettingsProvider* mock_display_settings_provider_; 121 MockDisplaySettingsProvider* mock_display_settings_provider_;
121 122
122 bool mock_display_settings_enabled_; 123 bool mock_display_settings_enabled_;
123 }; 124 };
124 125
125 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 126 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698