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

Side by Side Diff: ash/shelf/shelf.h

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Rebased to fix merge conflicts and addressed comments. Created 3 years, 6 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ASH_SHELF_SHELF_H_ 5 #ifndef ASH_SHELF_SHELF_H_
6 #define ASH_SHELF_SHELF_H_ 6 #define ASH_SHELF_SHELF_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void AddObserver(ShelfObserver* observer); 131 void AddObserver(ShelfObserver* observer);
132 void RemoveObserver(ShelfObserver* observer); 132 void RemoveObserver(ShelfObserver* observer);
133 133
134 void NotifyShelfIconPositionsChanged(); 134 void NotifyShelfIconPositionsChanged();
135 StatusAreaWidget* GetStatusAreaWidget() const; 135 StatusAreaWidget* GetStatusAreaWidget() const;
136 136
137 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds); 137 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds);
138 ShelfLockingManager* GetShelfLockingManagerForTesting(); 138 ShelfLockingManager* GetShelfLockingManagerForTesting();
139 ShelfView* GetShelfViewForTesting(); 139 ShelfView* GetShelfViewForTesting();
140 140
141 // Called when the app list is active.
vadimt 2017/05/30 23:52:08 Actually when the active status changes.
newcomer 2017/06/01 01:42:54 Done.
142 void OnAppListIsActive(bool is_active);
143
141 protected: 144 protected:
142 // ShelfLayoutManagerObserver: 145 // ShelfLayoutManagerObserver:
143 void WillDeleteShelfLayoutManager() override; 146 void WillDeleteShelfLayoutManager() override;
144 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; 147 void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
145 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; 148 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
146 void OnBackgroundUpdated(ShelfBackgroundType background_type, 149 void OnBackgroundUpdated(ShelfBackgroundType background_type,
147 AnimationChangeType change_type) override; 150 AnimationChangeType change_type) override;
148 151
149 private: 152 private:
150 class AutoHideEventHandler; 153 class AutoHideEventHandler;
(...skipping 21 matching lines...) Expand all
172 // Forwards touch gestures on a bezel sensor to the shelf. 175 // Forwards touch gestures on a bezel sensor to the shelf.
173 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 176 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647
174 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; 177 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(Shelf); 179 DISALLOW_COPY_AND_ASSIGN(Shelf);
177 }; 180 };
178 181
179 } // namespace ash 182 } // namespace ash
180 183
181 #endif // ASH_SHELF_SHELF_H_ 184 #endif // ASH_SHELF_SHELF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698