summaryrefslogtreecommitdiffstats
path: root/chromium/ash/system/status_area_widget_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/system/status_area_widget_delegate.h')
-rw-r--r--chromium/ash/system/status_area_widget_delegate.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/chromium/ash/system/status_area_widget_delegate.h b/chromium/ash/system/status_area_widget_delegate.h
deleted file mode 100644
index 751c31beced..00000000000
--- a/chromium/ash/system/status_area_widget_delegate.h
+++ /dev/null
@@ -1,70 +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_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_
-#define ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "ash/shelf/shelf_types.h"
-#include "ash/wm/gestures/shelf_gesture_handler.h"
-#include "ui/gfx/image/image_skia.h"
-#include "ui/views/accessible_pane_view.h"
-#include "ui/views/widget/widget_delegate.h"
-
-namespace ash {
-namespace internal {
-
-class FocusCycler;
-
-class ASH_EXPORT StatusAreaWidgetDelegate : public views::AccessiblePaneView,
- public views::WidgetDelegate {
- public:
- StatusAreaWidgetDelegate();
- virtual ~StatusAreaWidgetDelegate();
-
- // Add a tray view to the widget (e.g. system tray, web notifications).
- void AddTray(views::View* tray);
-
- // Called whenever layout might change (e.g. alignment changed).
- void UpdateLayout();
-
- // Sets the focus cycler.
- void SetFocusCyclerForTesting(const FocusCycler* focus_cycler);
-
- void set_alignment(ShelfAlignment alignment) { alignment_ = alignment; }
-
- // Overridden from views::AccessiblePaneView.
- virtual View* GetDefaultFocusableChild() OVERRIDE;
-
- // Overridden from views::View:
- virtual views::Widget* GetWidget() OVERRIDE;
- virtual const views::Widget* GetWidget() const OVERRIDE;
-
- // Overridden from ui::EventHandler:
- virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
-
- // views::WidgetDelegate overrides:
- virtual bool CanActivate() const OVERRIDE;
- virtual void DeleteDelegate() OVERRIDE;
-
- protected:
- // Overridden from views::View:
- virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
- virtual void ChildVisibilityChanged(views::View* child) OVERRIDE;
-
- private:
- void UpdateWidgetSize();
-
- const FocusCycler* focus_cycler_for_testing_;
- ShelfAlignment alignment_;
-
- ShelfGestureHandler gesture_handler_;
-
- DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_