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

Side by Side Diff: ui/message_center/views/message_view.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/notification_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/message_center/views/message_view.h" 5 #include "ui/message_center/views/message_view.h"
6 6
7 #include "grit/ui_resources.h" 7 #include "grit/ui_resources.h"
8 #include "grit/ui_strings.h" 8 #include "grit/ui_strings.h"
9 #include "ui/base/accessibility/accessible_view_state.h" 9 #include "ui/base/accessibility/accessible_view_state.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 20 matching lines...) Expand all
31 const int kShadowOffset = 1; 31 const int kShadowOffset = 1;
32 const int kShadowBlur = 4; 32 const int kShadowBlur = 4;
33 33
34 } // namespace 34 } // namespace
35 35
36 namespace message_center { 36 namespace message_center {
37 37
38 MessageView::MessageView(MessageViewController* controller, 38 MessageView::MessageView(MessageViewController* controller,
39 const std::string& notification_id, 39 const std::string& notification_id,
40 const NotifierId& notifier_id, 40 const NotifierId& notifier_id,
41 const string16& display_source) 41 const base::string16& display_source)
42 : controller_(controller), 42 : controller_(controller),
43 notification_id_(notification_id), 43 notification_id_(notification_id),
44 notifier_id_(notifier_id), 44 notifier_id_(notifier_id),
45 background_view_(NULL), 45 background_view_(NULL),
46 scroller_(NULL), 46 scroller_(NULL),
47 display_source_(display_source) { 47 display_source_(display_source) {
48 SetFocusable(true); 48 SetFocusable(true);
49 49
50 // Create the opaque background that's above the view's shadow. 50 // Create the opaque background that's above the view's shadow.
51 background_view_ = new views::View(); 51 background_view_ = new views::View();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (sender == close_button()) { 192 if (sender == close_button()) {
193 controller_->RemoveNotification(notification_id_, true); // By user. 193 controller_->RemoveNotification(notification_id_, true); // By user.
194 } 194 }
195 } 195 }
196 196
197 void MessageView::OnSlideOut() { 197 void MessageView::OnSlideOut() {
198 controller_->RemoveNotification(notification_id_, true); // By user. 198 controller_->RemoveNotification(notification_id_, true); // By user.
199 } 199 }
200 200
201 } // namespace message_center 201 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/notification_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698