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

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_view.cc

Issue 8565034: Add a drop shadow to the fullscreen exit bubble on windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/notifications/balloon_view.h" 5 #include "chrome/browser/ui/views/notifications/balloon_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 method_factory_(this), 102 method_factory_(this),
103 close_button_(NULL), 103 close_button_(NULL),
104 animation_(NULL), 104 animation_(NULL),
105 options_menu_model_(NULL), 105 options_menu_model_(NULL),
106 options_menu_button_(NULL) { 106 options_menu_button_(NULL) {
107 // This object is not to be deleted by the views hierarchy, 107 // This object is not to be deleted by the views hierarchy,
108 // as it is owned by the balloon. 108 // as it is owned by the balloon.
109 set_parent_owned(false); 109 set_parent_owned(false);
110 110
111 views::BubbleBorder* bubble_border = 111 views::BubbleBorder* bubble_border =
112 new views::BubbleBorder(views::BubbleBorder::FLOAT); 112 new views::BubbleBorder(views::BubbleBorder::FLOAT,
113 views::BubbleBorder::NO_SHADOW);
113 set_border(bubble_border); 114 set_border(bubble_border);
114 } 115 }
115 116
116 BalloonViewImpl::~BalloonViewImpl() { 117 BalloonViewImpl::~BalloonViewImpl() {
117 } 118 }
118 119
119 void BalloonViewImpl::Close(bool by_user) { 120 void BalloonViewImpl::Close(bool by_user) {
120 MessageLoop::current()->PostTask(FROM_HERE, 121 MessageLoop::current()->PostTask(FROM_HERE,
121 base::Bind(&BalloonViewImpl::DelayedClose, 122 base::Bind(&BalloonViewImpl::DelayedClose,
122 method_factory_.GetWeakPtr(), 123 method_factory_.GetWeakPtr(),
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 return; 516 return;
516 } 517 }
517 518
518 // If the renderer process attached to this balloon is disconnected 519 // If the renderer process attached to this balloon is disconnected
519 // (e.g., because of a crash), we want to close the balloon. 520 // (e.g., because of a crash), we want to close the balloon.
520 notification_registrar_.Remove( 521 notification_registrar_.Remove(
521 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, 522 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
522 content::Source<Balloon>(balloon_)); 523 content::Source<Balloon>(balloon_));
523 Close(false); 524 Close(false);
524 } 525 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/fullscreen_exit_bubble_views.cc ('k') | ui/resources/ui_resources_large.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698