Index: ash/shelf/overflow_bubble_view.h |
diff --git a/ash/shelf/overflow_bubble_view.h b/ash/shelf/overflow_bubble_view.h |
deleted file mode 100644 |
index 86054d8fcca920383afd94fd4ae964f5d6e1ffcf..0000000000000000000000000000000000000000 |
--- a/ash/shelf/overflow_bubble_view.h |
+++ /dev/null |
@@ -1,63 +0,0 @@ |
-// Copyright 2013 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_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |
-#define ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |
- |
-#include "ash/ash_export.h" |
-#include "base/compiler_specific.h" |
-#include "base/macros.h" |
-#include "ui/views/bubble/bubble_dialog_delegate.h" |
- |
-namespace ash { |
-class ShelfView; |
- |
-namespace test { |
-class OverflowBubbleViewTestAPI; |
-} |
- |
-// OverflowBubbleView hosts a ShelfView to display overflown items. |
-// Exports to access this class from OverflowBubbleViewTestAPI. |
-class ASH_EXPORT OverflowBubbleView : public views::BubbleDialogDelegateView { |
- public: |
- OverflowBubbleView(); |
- ~OverflowBubbleView() override; |
- |
- void InitOverflowBubble(views::View* anchor, ShelfView* shelf_view); |
- |
- // views::BubbleDialogDelegateView overrides: |
- int GetDialogButtons() const override; |
- gfx::Rect GetBubbleBounds() override; |
- |
- private: |
- friend class test::OverflowBubbleViewTestAPI; |
- |
- bool IsHorizontalAlignment() const; |
- |
- const gfx::Size GetContentsSize() const; |
- |
- // Gets arrow location based on shelf alignment. |
- views::BubbleBorder::Arrow GetBubbleArrow() const; |
- |
- void ScrollByXOffset(int x_offset); |
- void ScrollByYOffset(int y_offset); |
- |
- // views::View overrides: |
- gfx::Size GetPreferredSize() const override; |
- void Layout() override; |
- void ChildPreferredSizeChanged(views::View* child) override; |
- bool OnMouseWheel(const ui::MouseWheelEvent& event) override; |
- |
- // ui::EventHandler overrides: |
- void OnScrollEvent(ui::ScrollEvent* event) override; |
- |
- ShelfView* shelf_view_; // Owned by views hierarchy. |
- gfx::Vector2d scroll_offset_; |
- |
- DISALLOW_COPY_AND_ASSIGN(OverflowBubbleView); |
-}; |
- |
-} // namespace ash |
- |
-#endif // ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |