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

Side by Side Diff: chrome/browser/ui/views/message_center/web_notification_tray.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 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 "chrome/browser/ui/views/message_center/web_notification_tray.h" 5 #include "chrome/browser/ui/views/message_center/web_notification_tray.h"
6 6
7 #include "base/i18n/number_formatting.h" 7 #include "base/i18n/number_formatting.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 14 matching lines...) Expand all
25 #include "ui/message_center/message_center_tray.h" 25 #include "ui/message_center/message_center_tray.h"
26 #include "ui/message_center/message_center_tray_delegate.h" 26 #include "ui/message_center/message_center_tray_delegate.h"
27 #include "ui/message_center/views/message_popup_collection.h" 27 #include "ui/message_center/views/message_popup_collection.h"
28 #include "ui/views/widget/widget.h" 28 #include "ui/views/widget/widget.h"
29 29
30 namespace { 30 namespace {
31 31
32 // Tray constants 32 // Tray constants
33 const int kScreenEdgePadding = 2; 33 const int kScreenEdgePadding = 2;
34 34
35 const int kSystemTrayWidth = 16;
36 const int kSystemTrayHeight = 16;
37 const int kNumberOfSystemTraySprites = 10;
38
39 // Number of pixels the message center is offset from the mouse. 35 // Number of pixels the message center is offset from the mouse.
40 const int kMouseOffset = 5; 36 const int kMouseOffset = 5;
41 37
42 // Menu commands 38 // Menu commands
43 const int kToggleQuietMode = 0; 39 const int kToggleQuietMode = 0;
44 const int kEnableQuietModeHour = 1; 40 const int kEnableQuietModeHour = 1;
45 const int kEnableQuietModeDay = 2; 41 const int kEnableQuietModeDay = 2;
46 42
47 gfx::ImageSkia* GetIcon(int unread_count, bool is_quiet_mode) { 43 gfx::ImageSkia* GetIcon(int unread_count, bool is_quiet_mode) {
48 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 44 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 status_icon_menu_ = menu.get(); 359 status_icon_menu_ = menu.get();
364 status_icon->SetContextMenu(menu.Pass()); 360 status_icon->SetContextMenu(menu.Pass());
365 } 361 }
366 362
367 MessageCenterWidgetDelegate* 363 MessageCenterWidgetDelegate*
368 WebNotificationTray::GetMessageCenterWidgetDelegateForTest() { 364 WebNotificationTray::GetMessageCenterWidgetDelegateForTest() {
369 return message_center_delegate_; 365 return message_center_delegate_;
370 } 366 }
371 367
372 } // namespace message_center 368 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698