OLD | NEW |
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/common/shelf/overflow_bubble_view.h" | 5 #include "ash/shelf/overflow_bubble_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/common/shelf/shelf_constants.h" | |
10 #include "ash/common/shelf/wm_shelf.h" | |
11 #include "ash/common/wm_window.h" | |
12 #include "ash/public/cpp/shell_window_ids.h" | 9 #include "ash/public/cpp/shell_window_ids.h" |
13 #include "ash/root_window_controller.h" | 10 #include "ash/root_window_controller.h" |
| 11 #include "ash/shelf/shelf_constants.h" |
| 12 #include "ash/shelf/wm_shelf.h" |
| 13 #include "ash/wm_window.h" |
14 #include "ui/display/display.h" | 14 #include "ui/display/display.h" |
15 #include "ui/display/screen.h" | 15 #include "ui/display/screen.h" |
16 #include "ui/events/event.h" | 16 #include "ui/events/event.h" |
17 #include "ui/gfx/geometry/insets.h" | 17 #include "ui/gfx/geometry/insets.h" |
18 #include "ui/views/bubble/bubble_frame_view.h" | 18 #include "ui/views/bubble/bubble_frame_view.h" |
19 #include "ui/views/view.h" | 19 #include "ui/views/view.h" |
20 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace { | 23 namespace { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 bubble_rect.Offset(0, offset); | 220 bubble_rect.Offset(0, offset); |
221 border->set_arrow_offset(anchor_rect.CenterPoint().y() - bubble_rect.y()); | 221 border->set_arrow_offset(anchor_rect.CenterPoint().y() - bubble_rect.y()); |
222 } | 222 } |
223 | 223 |
224 GetBubbleFrameView()->SchedulePaint(); | 224 GetBubbleFrameView()->SchedulePaint(); |
225 return bubble_rect; | 225 return bubble_rect; |
226 } | 226 } |
227 | 227 |
228 } // namespace ash | 228 } // namespace ash |
OLD | NEW |