OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/launcher/overflow_bubble.h" | 5 #include "ash/launcher/overflow_bubble.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/launcher/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
10 #include "ash/launcher/launcher_view.h" | 10 #include "ash/launcher/launcher_view.h" |
11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
12 #include "ui/gfx/screen.h" | 12 #include "ui/gfx/screen.h" |
13 #include "ui/views/bubble/bubble_delegate.h" | 13 #include "ui/views/bubble/bubble_delegate.h" |
14 #include "ui/views/bubble/bubble_frame_view.h" | 14 #include "ui/views/bubble/bubble_frame_view.h" |
| 15 #include "ui/views/widget/widget.h" |
15 | 16 |
16 namespace ash { | 17 namespace ash { |
17 namespace internal { | 18 namespace internal { |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 // This should be the same color as the darkest launcher bar. | 22 // This should be the same color as the darkest launcher bar. |
22 const SkColor kLauncherColor = SkColorSetARGB(0x80, 0, 0, 0); | 23 const SkColor kLauncherColor = SkColorSetARGB(0x80, 0, 0, 0); |
23 | 24 |
24 // Max bubble size to screen size ratio. | 25 // Max bubble size to screen size ratio. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 bubble_ = NULL; | 284 bubble_ = NULL; |
284 } | 285 } |
285 | 286 |
286 void OverflowBubble::OnWidgetClosing(views::Widget* widget) { | 287 void OverflowBubble::OnWidgetClosing(views::Widget* widget) { |
287 DCHECK(widget == bubble_->GetWidget()); | 288 DCHECK(widget == bubble_->GetWidget()); |
288 bubble_ = NULL; | 289 bubble_ = NULL; |
289 } | 290 } |
290 | 291 |
291 } // namespace internal | 292 } // namespace internal |
292 } // namespace ash | 293 } // namespace ash |
OLD | NEW |