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

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

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
6 #define CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/panels/test_panel_notification_observer.h"
10
11 class DockedPanelCollection;
12 class Panel;
13
14 // Custom notification observer for waiting on panel collection that squeezes
15 // its panels to reflect a certain state.
16 // Modeled after ui_test_utils notification observers.
17 class PanelCollectionSqueezeObserver : public TestPanelNotificationObserver {
18 public:
19 // Register to listen for panel collection updated notifications
20 // from the specified collection to detect a change to the state
21 // where the |active_panel| is at full width and all other
22 // panels in the collection are squeezed.
23 PanelCollectionSqueezeObserver(DockedPanelCollection* collection,
24 Panel* active_panel);
25 ~PanelCollectionSqueezeObserver() override;
26
27 private:
28 // TestNotificationObserver override:
29 bool AtExpectedState() override;
30
31 bool IsSqueezed(Panel* panel);
32
33 DockedPanelCollection* panel_collection_;
34 Panel* active_panel_;
35
36 DISALLOW_COPY_AND_ASSIGN(PanelCollectionSqueezeObserver);
37 };
38
39 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698