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

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

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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
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 "chrome/browser/ui/views/notifications/balloon_view_views.h" 5 #include "chrome/browser/ui/views/notifications/balloon_view_views.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Size of the drop shadow. The shadow is provided by BubbleBorder, 67 // Size of the drop shadow. The shadow is provided by BubbleBorder,
68 // not this class. 68 // not this class.
69 const int kLeftShadowWidth = 0; 69 const int kLeftShadowWidth = 0;
70 const int kRightShadowWidth = 0; 70 const int kRightShadowWidth = 0;
71 const int kTopShadowWidth = 0; 71 const int kTopShadowWidth = 0;
72 const int kBottomShadowWidth = 6; 72 const int kBottomShadowWidth = 6;
73 73
74 // Optional animation. 74 // Optional animation.
75 const bool kAnimateEnabled = true; 75 const bool kAnimateEnabled = true;
76 76
77 // Menu commands
78 const int kRevokePermissionCommand = 0;
79
80 // Colors 77 // Colors
81 const SkColor kControlBarBackgroundColor = SkColorSetRGB(245, 245, 245); 78 const SkColor kControlBarBackgroundColor = SkColorSetRGB(245, 245, 245);
82 const SkColor kControlBarTextColor = SkColorSetRGB(125, 125, 125); 79 const SkColor kControlBarTextColor = SkColorSetRGB(125, 125, 125);
83 const SkColor kControlBarSeparatorLineColor = SkColorSetRGB(180, 180, 180); 80 const SkColor kControlBarSeparatorLineColor = SkColorSetRGB(180, 180, 180);
84 81
85 } // namespace 82 } // namespace
86 83
87 // static 84 // static
88 int BalloonView::GetHorizontalMargin() { 85 int BalloonView::GetHorizontalMargin() {
89 return kLeftMargin + kRightMargin + kLeftShadowWidth + kRightShadowWidth; 86 return kLeftMargin + kRightMargin + kLeftShadowWidth + kRightShadowWidth;
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 return; 534 return;
538 } 535 }
539 536
540 // If the renderer process attached to this balloon is disconnected 537 // If the renderer process attached to this balloon is disconnected
541 // (e.g., because of a crash), we want to close the balloon. 538 // (e.g., because of a crash), we want to close the balloon.
542 notification_registrar_.Remove( 539 notification_registrar_.Remove(
543 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, 540 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
544 content::Source<Balloon>(balloon_)); 541 content::Source<Balloon>(balloon_));
545 Close(false); 542 Close(false);
546 } 543 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698