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

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

Issue 1743493002: Cleanup ash shelf accessor functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert ash/shelf/shelf_widget.cc for browser_tests crash... Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/overflow_bubble_view.h » ('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 #include "ash/shelf/overflow_bubble.h" 5 #include "ash/shelf/overflow_bubble.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shelf/overflow_bubble_view.h" 8 #include "ash/shelf/overflow_bubble_view.h"
9 #include "ash/shelf/shelf_layout_manager.h" 9 #include "ash/shelf/shelf.h"
10 #include "ash/shelf/shelf_view.h" 10 #include "ash/shelf/shelf_view.h"
11 #include "ash/shelf/shelf_widget.h" 11 #include "ash/shelf/shelf_widget.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/system/tray/system_tray.h" 13 #include "ash/system/tray/system_tray.h"
14 #include "ui/aura/client/screen_position_client.h" 14 #include "ui/aura/client/screen_position_client.h"
15 #include "ui/aura/window_event_dispatcher.h" 15 #include "ui/aura/window_event_dispatcher.h"
16 #include "ui/events/event.h" 16 #include "ui/events/event.h"
17 #include "ui/gfx/screen.h" 17 #include "ui/gfx/screen.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 19
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void OverflowBubble::OnTouchEvent(ui::TouchEvent* event) { 88 void OverflowBubble::OnTouchEvent(ui::TouchEvent* event) {
89 if (event->type() == ui::ET_TOUCH_PRESSED) 89 if (event->type() == ui::ET_TOUCH_PRESSED)
90 ProcessPressedEvent(event); 90 ProcessPressedEvent(event);
91 } 91 }
92 92
93 void OverflowBubble::OnWidgetDestroying(views::Widget* widget) { 93 void OverflowBubble::OnWidgetDestroying(views::Widget* widget) {
94 DCHECK(widget == bubble_->GetWidget()); 94 DCHECK(widget == bubble_->GetWidget());
95 bubble_ = NULL; 95 bubble_ = NULL;
96 anchor_ = NULL; 96 anchor_ = NULL;
97 shelf_view_->shelf_layout_manager()->shelf_widget()->shelf()->SchedulePaint(); 97 shelf_view_->shelf()->SchedulePaint();
98 shelf_view_ = NULL; 98 shelf_view_ = NULL;
99 } 99 }
100 100
101 } // namespace ash 101 } // namespace ash
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/overflow_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698