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

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

Issue 10834079: views: Extract Widget observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/overflow_bubble.h ('k') | ash/system/tray/system_tray_bubble.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 (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
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
OLDNEW
« no previous file with comments | « ash/launcher/overflow_bubble.h ('k') | ash/system/tray/system_tray_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698