| 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 "chrome/browser/notifications/notification_options_menu_model.h" | 5 #include "chrome/browser/notifications/notification_options_menu_model.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const int kCornerLowerLeft = 13; | 41 const int kCornerLowerLeft = 13; |
| 42 const int kCornerLowerRight = 14; | 42 const int kCornerLowerRight = 14; |
| 43 const int kCornerDefault = 20; | 43 const int kCornerDefault = 20; |
| 44 | 44 |
| 45 CornerSelectionMenuModel::CornerSelectionMenuModel(Balloon* balloon) | 45 CornerSelectionMenuModel::CornerSelectionMenuModel(Balloon* balloon) |
| 46 : ALLOW_THIS_IN_INITIALIZER_LIST(ui::SimpleMenuModel(this)), | 46 : ALLOW_THIS_IN_INITIALIZER_LIST(ui::SimpleMenuModel(this)), |
| 47 balloon_(balloon) { | 47 balloon_(balloon) { |
| 48 AddRadioItem(kCornerDefault, | 48 AddRadioItem(kCornerDefault, |
| 49 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_DEFAULT), | 49 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_DEFAULT), |
| 50 kCornerGroupId); | 50 kCornerGroupId); |
| 51 AddSeparator(); | 51 AddSeparator(ui::NORMAL_SEPARATOR); |
| 52 AddRadioItem(kCornerUpperLeft, | 52 AddRadioItem(kCornerUpperLeft, |
| 53 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_UPPER_LEFT), | 53 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_UPPER_LEFT), |
| 54 kCornerGroupId); | 54 kCornerGroupId); |
| 55 AddRadioItem(kCornerUpperRight, | 55 AddRadioItem(kCornerUpperRight, |
| 56 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_UPPER_RIGHT), | 56 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_UPPER_RIGHT), |
| 57 kCornerGroupId); | 57 kCornerGroupId); |
| 58 AddRadioItem(kCornerLowerLeft, | 58 AddRadioItem(kCornerLowerLeft, |
| 59 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_LOWER_LEFT), | 59 l10n_util::GetStringUTF16(IDS_NOTIFICATION_POSITION_LOWER_LEFT), |
| 60 kCornerGroupId); | 60 kCornerGroupId); |
| 61 AddRadioItem(kCornerLowerRight, | 61 AddRadioItem(kCornerLowerRight, |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 browser = new Browser(Browser::CreateParams(balloon_->profile())); | 257 browser = new Browser(Browser::CreateParams(balloon_->profile())); |
| 258 } | 258 } |
| 259 chrome::ShowContentSettings(browser, CONTENT_SETTINGS_TYPE_NOTIFICATIONS); | 259 chrome::ShowContentSettings(browser, CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
| 260 break; | 260 break; |
| 261 } | 261 } |
| 262 default: | 262 default: |
| 263 NOTREACHED(); | 263 NOTREACHED(); |
| 264 break; | 264 break; |
| 265 } | 265 } |
| 266 } | 266 } |
| OLD | NEW |