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

Unified Diff: ash/app_list/app_list_shower_delegate.h

Issue 1872033002: Revert of AppListController refactoring part 2: Ash's AppListShowerDelegate imlementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus_chrome_delegates_app_list_2
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/BUILD.gn ('k') | ash/app_list/app_list_shower_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_shower_delegate.h
diff --git a/ash/app_list/app_list_shower_delegate.h b/ash/app_list/app_list_shower_delegate.h
deleted file mode 100644
index f8fe6ecbba4c377c05faede57e922325c3163802..0000000000000000000000000000000000000000
--- a/ash/app_list/app_list_shower_delegate.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_
-#define ASH_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "ash/shelf/shelf_icon_observer.h"
-#include "ash/shell_observer.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "ui/app_list/shower/app_list_shower_delegate.h"
-#include "ui/events/event_handler.h"
-#include "ui/keyboard/keyboard_controller_observer.h"
-
-namespace app_list {
-class ApplicationDragAndDropHost;
-class AppListView;
-}
-
-namespace app_list {
-class AppListShower;
-}
-
-namespace ui {
-class LocatedEvent;
-}
-
-namespace ash {
-
-namespace test {
-class AppListShowerAshTestApi;
-}
-
-class AppListViewDelegateFactory;
-
-// Responsible for laying out the app list UI as well as updating the Shelf
-// launch icon as the state of the app list changes. Listens to shell events
-// and touches/mouse clicks outside the app list to auto dismiss the UI or
-// update its layout as necessary.
-class ASH_EXPORT AppListShowerDelegate
- : public app_list::AppListShowerDelegate,
- public ui::EventHandler,
- public keyboard::KeyboardControllerObserver,
- public ShellObserver,
- public ShelfIconObserver {
- public:
- AppListShowerDelegate(app_list::AppListShower* shower,
- AppListViewDelegateFactory* view_delegate_factory);
- ~AppListShowerDelegate() override;
-
- // app_list::AppListShowerDelegate:
- app_list::AppListViewDelegate* GetViewDelegate() override;
- void Init(app_list::AppListView* view,
- aura::Window* root_window,
- int current_apps_page) override;
- void OnShown(aura::Window* root_window) override;
- void OnDismissed() override;
- void UpdateBounds() override;
- gfx::Vector2d GetVisibilityAnimationOffset(
- aura::Window* root_window) override;
-
- private:
- void ProcessLocatedEvent(ui::LocatedEvent* event);
-
- // ui::EventHandler overrides:
- void OnMouseEvent(ui::MouseEvent* event) override;
- void OnGestureEvent(ui::GestureEvent* event) override;
-
- // KeyboardControllerObserver overrides:
- void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
-
- // ShellObserver overrides:
- void OnShelfAlignmentChanged(aura::Window* root_window) override;
- void OnMaximizeModeStarted() override;
- void OnMaximizeModeEnded() override;
-
- // ShelfIconObserver overrides:
- void OnShelfIconPositionsChanged() override;
-
- // Whether the app list is visible (or in the process of being shown).
- bool is_visible_ = false;
-
- // Whether the app list should remain centered.
- bool is_centered_ = false;
-
- // Not owned. Pointer is guaranteed to be valid while this object is alive.
- app_list::AppListShower* shower_;
-
- // Not owned. Pointer is guaranteed to be valid while this object is alive.
- AppListViewDelegateFactory* view_delegate_factory_;
-
- // The AppListView this class manages, owned by its widget.
- app_list::AppListView* view_ = nullptr;
-
- DISALLOW_COPY_AND_ASSIGN(AppListShowerDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_
« no previous file with comments | « ash/BUILD.gn ('k') | ash/app_list/app_list_shower_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698