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

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

Issue 10384192: Prevent title-only panel from fully minimizing when attention is cleared if mouse is in the panel o… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment changed Created 8 years, 7 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) 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 #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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void WaitForBoundsAnimationFinished(Panel* panel); 88 void WaitForBoundsAnimationFinished(Panel* panel);
89 void WaitForExpansionStateChanged(Panel* panel, 89 void WaitForExpansionStateChanged(Panel* panel,
90 Panel::ExpansionState expansion_state); 90 Panel::ExpansionState expansion_state);
91 91
92 void CreateTestTabContents(Browser* browser); 92 void CreateTestTabContents(Browser* browser);
93 93
94 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, 94 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path,
95 Extension::Location location, 95 Extension::Location location,
96 const DictionaryValue& extra_value); 96 const DictionaryValue& extra_value);
97 97
98 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
99 const gfx::Point& position);
98 static void MoveMouse(const gfx::Point& position); 100 static void MoveMouse(const gfx::Point& position);
99 void CloseWindowAndWait(Browser* browser); 101 void CloseWindowAndWait(Browser* browser);
100 static std::string MakePanelName(int index); 102 static std::string MakePanelName(int index);
101 103
102 void SetTestingWorkArea(const gfx::Rect& work_area); 104 void SetTestingWorkArea(const gfx::Rect& work_area);
103 105
104 MockDisplaySettingsProvider* mock_display_settings_provider() const { 106 MockDisplaySettingsProvider* mock_display_settings_provider() const {
105 return mock_display_settings_provider_; 107 return mock_display_settings_provider_;
106 } 108 }
107 109
108 static const FilePath::CharType* kTestDir; 110 static const FilePath::CharType* kTestDir;
109 private: 111 private:
110 // Passed to and owned by PanelManager. 112 // Passed to and owned by PanelManager.
111 MockDisplaySettingsProvider* mock_display_settings_provider_; 113 MockDisplaySettingsProvider* mock_display_settings_provider_;
112 }; 114 };
113 115
114 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 116 #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