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

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

Issue 9195003: Move IN_OVERFLOW from Panel::ExpansionState to new enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/values.h" 9 #include "base/values.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 61 void WaitForPanelAdded(Panel* panel);
62 void WaitForPanelRemoved(Panel* panel); 62 void WaitForPanelRemoved(Panel* panel);
63 void WaitForPanelActiveState(Panel* panel, ActiveState state); 63 void WaitForPanelActiveState(Panel* panel, ActiveState state);
64 void WaitForWindowSizeAvailable(Panel* panel); 64 void WaitForWindowSizeAvailable(Panel* panel);
65 void WaitForBoundsAnimationFinished(Panel* panel); 65 void WaitForBoundsAnimationFinished(Panel* panel);
66 void WaitForLayoutStateChanged(Panel* panel,
67 Panel::LayoutState layout_state);
66 void WaitForExpansionStateChanged(Panel* panel, 68 void WaitForExpansionStateChanged(Panel* panel,
67 Panel::ExpansionState expansion_state); 69 Panel::ExpansionState expansion_state);
68 70
69 void CreateTestTabContents(Browser* browser); 71 void CreateTestTabContents(Browser* browser);
70 72
71 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, 73 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path,
72 Extension::Location location, 74 Extension::Location location,
73 const DictionaryValue& extra_value); 75 const DictionaryValue& extra_value);
74 76
77 void ClickPanelTitlebar(Panel* panel);
78
75 static void MoveMouse(const gfx::Point& position); 79 static void MoveMouse(const gfx::Point& position);
76 static void CloseWindowAndWait(Browser* browser); 80 static void CloseWindowAndWait(Browser* browser);
77 static std::string MakePanelName(int index); 81 static std::string MakePanelName(int index);
78 82
79 gfx::Rect testing_work_area() const { return testing_work_area_; } 83 gfx::Rect testing_work_area() const { return testing_work_area_; }
80 void set_testing_work_area(const gfx::Rect& work_area) { 84 void set_testing_work_area(const gfx::Rect& work_area) {
81 testing_work_area_ = work_area; 85 testing_work_area_ = work_area;
82 } 86 }
83 87
84 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { 88 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const {
85 return mock_auto_hiding_desktop_bar_.get(); 89 return mock_auto_hiding_desktop_bar_.get();
86 } 90 }
87 91
88 static const FilePath::CharType* kTestDir; 92 static const FilePath::CharType* kTestDir;
89 private: 93 private:
90 gfx::Rect testing_work_area_; 94 gfx::Rect testing_work_area_;
91 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; 95 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_;
92 }; 96 };
93 97
94 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 98 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698