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

Unified Diff: ash/common/shelf/overflow_bubble.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: 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/shelf/ink_drop_button_listener.h ('k') | ash/common/shelf/overflow_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_bubble.h
diff --git a/ash/common/shelf/overflow_bubble.h b/ash/common/shelf/overflow_bubble.h
deleted file mode 100644
index 201018ca18df8c457d7f529501b3501372bdda62..0000000000000000000000000000000000000000
--- a/ash/common/shelf/overflow_bubble.h
+++ /dev/null
@@ -1,65 +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_COMMON_SHELF_OVERFLOW_BUBBLE_H_
-#define ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_
-
-#include "base/macros.h"
-#include "ui/views/pointer_watcher.h"
-#include "ui/views/widget/widget_observer.h"
-
-namespace ui {
-class PointerEvent;
-}
-
-namespace ash {
-class OverflowBubbleView;
-class OverflowButton;
-class ShelfView;
-class WmShelf;
-
-// OverflowBubble shows shelf items that won't fit on the main shelf in a
-// separate bubble.
-class OverflowBubble : public views::PointerWatcher,
- public views::WidgetObserver {
- public:
- // |wm_shelf| is the shelf that spawns the bubble.
- explicit OverflowBubble(WmShelf* wm_shelf);
- ~OverflowBubble() override;
-
- // Shows an bubble pointing to |overflow_button| with |shelf_view| as its
- // content. This |shelf_view| is different than the main shelf's view and
- // only contains the overflow items.
- void Show(OverflowButton* overflow_button, ShelfView* shelf_view);
-
- void Hide();
-
- bool IsShowing() const { return !!bubble_; }
- ShelfView* shelf_view() { return shelf_view_; }
- OverflowBubbleView* bubble_view() { return bubble_; }
-
- private:
- void ProcessPressedEvent(const gfx::Point& event_location_in_screen);
-
- // views::PointerWatcher:
- void OnPointerEventObserved(const ui::PointerEvent& event,
- const gfx::Point& location_in_screen,
- views::Widget* target) override;
-
- // Overridden from views::WidgetObserver:
- void OnWidgetDestroying(views::Widget* widget) override;
-
- WmShelf* wm_shelf_;
- OverflowBubbleView* bubble_; // Owned by views hierarchy.
- OverflowButton* overflow_button_; // Owned by ShelfView.
-
- // ShelfView containing the overflow items. Owned by |bubble_|.
- ShelfView* shelf_view_;
-
- DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHELF_OVERFLOW_BUBBLE_H_
« no previous file with comments | « ash/common/shelf/ink_drop_button_listener.h ('k') | ash/common/shelf/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698