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

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

Issue 10919046: Allow panels to be created as detached panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avoid panel_create_mode being unused_var in Ash 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"
11 #include "chrome/browser/ui/panels/panel.h" 11 #include "chrome/browser/ui/panels/panel.h"
12 #include "chrome/browser/ui/panels/panel_strip.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/test/base/in_process_browser_test.h" 14 #include "chrome/test/base/in_process_browser_test.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 class NativePanelTesting; 17 class NativePanelTesting;
18 18
19 class BasePanelBrowserTest : public InProcessBrowserTest { 19 class BasePanelBrowserTest : public InProcessBrowserTest {
20 public: 20 public:
21 class MockDisplaySettingsProvider : public DisplaySettingsProvider { 21 class MockDisplaySettingsProvider : public DisplaySettingsProvider {
22 public: 22 public:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 protected: 56 protected:
57 enum ActiveState { SHOW_AS_ACTIVE, SHOW_AS_INACTIVE }; 57 enum ActiveState { SHOW_AS_ACTIVE, SHOW_AS_INACTIVE };
58 58
59 struct CreatePanelParams { 59 struct CreatePanelParams {
60 std::string name; 60 std::string name;
61 gfx::Rect bounds; 61 gfx::Rect bounds;
62 ActiveState show_flag; 62 ActiveState show_flag;
63 GURL url; 63 GURL url;
64 bool wait_for_fully_created; 64 bool wait_for_fully_created;
65 ActiveState expected_active_state; 65 ActiveState expected_active_state;
66 PanelManager::CreateMode create_mode;
66 67
67 CreatePanelParams(const std::string& name, 68 CreatePanelParams(const std::string& name,
68 const gfx::Rect& bounds, 69 const gfx::Rect& bounds,
69 ActiveState show_flag); 70 ActiveState show_flag);
70 }; 71 };
71 72
72 Panel* CreatePanelWithParams(const CreatePanelParams& params); 73 Panel* CreatePanelWithParams(const CreatePanelParams& params);
73 Panel* CreatePanelWithBounds(const std::string& panel_name, 74 Panel* CreatePanelWithBounds(const std::string& panel_name,
74 const gfx::Rect& bounds); 75 const gfx::Rect& bounds);
75 Panel* CreatePanel(const std::string& panel_name); 76 Panel* CreatePanel(const std::string& panel_name);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 static const FilePath::CharType* kTestDir; 114 static const FilePath::CharType* kTestDir;
114 115
115 private: 116 private:
116 // Passed to and owned by PanelManager. 117 // Passed to and owned by PanelManager.
117 MockDisplaySettingsProvider* mock_display_settings_provider_; 118 MockDisplaySettingsProvider* mock_display_settings_provider_;
118 119
119 bool mock_display_settings_enabled_; 120 bool mock_display_settings_enabled_;
120 }; 121 };
121 122
122 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 123 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_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