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

Side by Side Diff: ui/message_center/message_center_tray.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Causes an update if the popup bubble is already shown. 55 // Causes an update if the popup bubble is already shown.
56 void ShowPopupBubble(); 56 void ShowPopupBubble();
57 57
58 // Returns whether the popup was visible before. 58 // Returns whether the popup was visible before.
59 bool HidePopupBubble(); 59 bool HidePopupBubble();
60 60
61 // Toggles the visibility of the settings view in the message center bubble. 61 // Toggles the visibility of the settings view in the message center bubble.
62 void ShowNotifierSettingsBubble(); 62 void ShowNotifierSettingsBubble();
63 63
64 // Creates a model for the context menu for a notification card. 64 // Creates a model for the context menu for a notification card.
65 scoped_ptr<ui::MenuModel> CreateNotificationMenuModel( 65 std::unique_ptr<ui::MenuModel> CreateNotificationMenuModel(
66 const NotifierId& notifier_id, 66 const NotifierId& notifier_id,
67 const base::string16& display_source); 67 const base::string16& display_source);
68 68
69 bool message_center_visible() { return message_center_visible_; } 69 bool message_center_visible() { return message_center_visible_; }
70 bool popups_visible() { return popups_visible_; } 70 bool popups_visible() { return popups_visible_; }
71 MessageCenterTrayDelegate* delegate() { return delegate_; } 71 MessageCenterTrayDelegate* delegate() { return delegate_; }
72 const message_center::MessageCenter* message_center() const { 72 const message_center::MessageCenter* message_center() const {
73 return message_center_; 73 return message_center_;
74 } 74 }
75 message_center::MessageCenter* message_center() { return message_center_; } 75 message_center::MessageCenter* message_center() { return message_center_; }
(...skipping 23 matching lines...) Expand all
99 bool popups_visible_; 99 bool popups_visible_;
100 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. 100 // |delegate_| is a weak pointer that must live longer than MessageCenterTray.
101 MessageCenterTrayDelegate* delegate_; 101 MessageCenterTrayDelegate* delegate_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); 103 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray);
104 }; 104 };
105 105
106 } // namespace message_center 106 } // namespace message_center
107 107
108 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 108 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_impl_unittest.cc ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698