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

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

Issue 8503037: Fix the problem that notifications and panels overlap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task.h" 9 #include "base/task.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bounds(bounds), 51 bounds(bounds),
52 show_flag(show_flag) { 52 show_flag(show_flag) {
53 } 53 }
54 }; 54 };
55 55
56 Panel* CreatePanelWithParams(const CreatePanelParams& params); 56 Panel* CreatePanelWithParams(const CreatePanelParams& params);
57 Panel* CreatePanelWithBounds(const std::string& panel_name, 57 Panel* CreatePanelWithBounds(const std::string& panel_name,
58 const gfx::Rect& bounds); 58 const gfx::Rect& bounds);
59 Panel* CreatePanel(const std::string& panel_name); 59 Panel* CreatePanel(const std::string& panel_name);
60 60
61 void WaitForPanelAdded(Panel* panel);
62 void WaitForPanelRemoved(Panel* panel);
61 void WaitForPanelActiveState(Panel* panel, ActiveState state); 63 void WaitForPanelActiveState(Panel* panel, ActiveState state);
62 void WaitForWindowSizeAvailable(Panel* panel); 64 void WaitForWindowSizeAvailable(Panel* panel);
63 void WaitForBoundsAnimationFinished(Panel* panel); 65 void WaitForBoundsAnimationFinished(Panel* panel);
64 66
65 void CreateTestTabContents(Browser* browser); 67 void CreateTestTabContents(Browser* browser);
66 68
67 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, 69 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path,
68 Extension::Location location, 70 Extension::Location location,
69 const DictionaryValue& extra_value); 71 const DictionaryValue& extra_value);
70 72
71 gfx::Rect testing_work_area() const { return testing_work_area_; } 73 gfx::Rect testing_work_area() const { return testing_work_area_; }
74 void set_testing_work_area(const gfx::Rect& work_area) {
75 testing_work_area_ = work_area;
76 }
72 77
73 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { 78 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const {
74 return mock_auto_hiding_desktop_bar_.get(); 79 return mock_auto_hiding_desktop_bar_.get();
75 } 80 }
76 81
77 private: 82 private:
78 gfx::Rect testing_work_area_; 83 gfx::Rect testing_work_area_;
79 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; 84 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_;
80 }; 85 };
81 86
82 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 87 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698