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

Side by Side Diff: chrome/browser/notifications/notification_options_menu_model.cc

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another merge! 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
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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_devices_menu_model.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698