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

Side by Side Diff: ash/shelf/overflow_bubble.h

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « ash/pointer_watcher_delegate_aura.cc ('k') | ash/shelf/overflow_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SHELF_OVERFLOW_BUBBLE_H_ 5 #ifndef ASH_SHELF_OVERFLOW_BUBBLE_H_
6 #define ASH_SHELF_OVERFLOW_BUBBLE_H_ 6 #define ASH_SHELF_OVERFLOW_BUBBLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/pointer_watcher.h" 9 #include "ui/views/pointer_watcher.h"
10 #include "ui/views/widget/widget_observer.h" 10 #include "ui/views/widget/widget_observer.h"
(...skipping 29 matching lines...) Expand all
40 40
41 bool IsShowing() const { return !!bubble_; } 41 bool IsShowing() const { return !!bubble_; }
42 ShelfView* shelf_view() { return shelf_view_; } 42 ShelfView* shelf_view() { return shelf_view_; }
43 OverflowBubbleView* bubble_view() { return bubble_; } 43 OverflowBubbleView* bubble_view() { return bubble_; }
44 44
45 private: 45 private:
46 void ProcessPressedEvent(const gfx::Point& event_location_in_screen); 46 void ProcessPressedEvent(const gfx::Point& event_location_in_screen);
47 47
48 // views::PointerWatcher: 48 // views::PointerWatcher:
49 void OnMousePressed(const ui::MouseEvent& event, 49 void OnMousePressed(const ui::MouseEvent& event,
50 const gfx::Point& location_in_screen) override; 50 const gfx::Point& location_in_screen,
51 views::Widget* target) override;
51 void OnTouchPressed(const ui::TouchEvent& event, 52 void OnTouchPressed(const ui::TouchEvent& event,
52 const gfx::Point& location_in_screen) override; 53 const gfx::Point& location_in_screen,
54 views::Widget* target) override;
53 55
54 // Overridden from views::WidgetObserver: 56 // Overridden from views::WidgetObserver:
55 void OnWidgetDestroying(views::Widget* widget) override; 57 void OnWidgetDestroying(views::Widget* widget) override;
56 58
57 OverflowBubbleView* bubble_; // Owned by views hierarchy. 59 OverflowBubbleView* bubble_; // Owned by views hierarchy.
58 views::View* anchor_; // Owned by ShelfView. 60 views::View* anchor_; // Owned by ShelfView.
59 ShelfView* shelf_view_; // Owned by |bubble_|. 61 ShelfView* shelf_view_; // Owned by |bubble_|.
60 62
61 DISALLOW_COPY_AND_ASSIGN(OverflowBubble); 63 DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
62 }; 64 };
63 65
64 } // namespace ash 66 } // namespace ash
65 67
66 #endif // ASH_SHELF_OVERFLOW_BUBBLE_H_ 68 #endif // ASH_SHELF_OVERFLOW_BUBBLE_H_
OLDNEW
« no previous file with comments | « ash/pointer_watcher_delegate_aura.cc ('k') | ash/shelf/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698