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

Unified Diff: ash/common/system/overview/overview_button_tray.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/common/system/networking_config_delegate.cc ('k') | ash/common/system/overview/overview_button_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/overview/overview_button_tray.h
diff --git a/ash/common/system/overview/overview_button_tray.h b/ash/common/system/overview/overview_button_tray.h
deleted file mode 100644
index c0f71dc30c5a1a2258a4cb0aa0e2522e4353bd01..0000000000000000000000000000000000000000
--- a/ash/common/system/overview/overview_button_tray.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2014 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_COMMON_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
-#define ASH_COMMON_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/session/session_state_observer.h"
-#include "ash/common/shell_observer.h"
-#include "ash/common/system/tray/tray_background_view.h"
-#include "base/macros.h"
-
-namespace views {
-class ImageView;
-}
-
-namespace ash {
-
-// Status area tray for showing a toggle for Overview Mode. Overview Mode
-// is equivalent to WindowSelectorController being in selection mode.
-// This hosts a ShellObserver that listens for the activation of Maximize Mode
-// This tray will only be visible while in this state. This tray does not
-// provide any bubble view windows.
-class ASH_EXPORT OverviewButtonTray : public TrayBackgroundView,
- public SessionStateObserver,
- public ShellObserver {
- public:
- explicit OverviewButtonTray(WmShelf* wm_shelf);
- ~OverviewButtonTray() override;
-
- // Updates the tray's visibility based on the LoginStatus and the current
- // state of MaximizeMode
- virtual void UpdateAfterLoginStatusChange(LoginStatus status);
-
- // ActionableView:
- bool PerformAction(const ui::Event& event) override;
-
- // SessionStateObserver:
- void SessionStateChanged(session_manager::SessionState state) override;
-
- // ShellObserver:
- void OnMaximizeModeStarted() override;
- void OnMaximizeModeEnded() override;
- void OnOverviewModeStarting() override;
- void OnOverviewModeEnded() override;
-
- // TrayBackgroundView:
- void ClickedOutsideBubble() override;
- base::string16 GetAccessibleNameForTray() override;
- void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
- void SetShelfAlignment(ShelfAlignment alignment) override;
-
- private:
- friend class OverviewButtonTrayTest;
-
- // Creates a new border for the icon. The padding is determined based on the
- // alignment of the shelf.
- void SetIconBorderForShelfAlignment();
-
- // Sets the icon to visible if maximize mode is enabled and
- // WindowSelectorController::CanSelect.
- void UpdateIconVisibility();
-
- // Weak pointer, will be parented by TrayContainer for its lifetime.
- views::ImageView* icon_;
-
- DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
« no previous file with comments | « ash/common/system/networking_config_delegate.cc ('k') | ash/common/system/overview/overview_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698