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