| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_AURA_WM_SHELF_AURA_H_ | |
| 6 #define ASH_AURA_WM_SHELF_AURA_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "ash/common/shelf/wm_shelf.h" | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 class ShelfBezelEventHandler; | |
| 15 | |
| 16 // Aura implementation of WmShelf. | |
| 17 class ASH_EXPORT WmShelfAura : public WmShelf { | |
| 18 public: | |
| 19 WmShelfAura(); | |
| 20 ~WmShelfAura() override; | |
| 21 | |
| 22 // WmShelf: | |
| 23 void CreateShelfWidget(WmWindow* root) override; | |
| 24 void WillDeleteShelfLayoutManager() override; | |
| 25 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; | |
| 26 | |
| 27 private: | |
| 28 class AutoHideEventHandler; | |
| 29 | |
| 30 // Forwards mouse and gesture events to ShelfLayoutManager for auto-hide. | |
| 31 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/631216 | |
| 32 std::unique_ptr<AutoHideEventHandler> auto_hide_event_handler_; | |
| 33 | |
| 34 // Forwards touch gestures on a bezel sensor to the shelf. | |
| 35 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 | |
| 36 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(WmShelfAura); | |
| 39 }; | |
| 40 | |
| 41 } // namespace ash | |
| 42 | |
| 43 #endif // ASH_AURA_WM_SHELF_AURA_H_ | |
| OLD | NEW |