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

Side by Side Diff: chrome/browser/extensions/extension_context_menu_model.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ui/base/models/simple_menu_model.h" 12 #include "ui/base/models/simple_menu_model.h"
13 13
14 class Browser; 14 class Browser;
15 class ExtensionAction; 15 class ExtensionAction;
16 class Profile; 16 class Profile;
17 17
18 namespace content { 18 namespace content {
19 class WebContents; 19 class WebContents;
20 } 20 }
21 21
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // The delegate which handles the 'inspect popup' menu command (or NULL). 126 // The delegate which handles the 'inspect popup' menu command (or NULL).
127 PopupDelegate* delegate_; 127 PopupDelegate* delegate_;
128 128
129 // The type of extension action to which this context menu is attached. 129 // The type of extension action to which this context menu is attached.
130 ActionType action_type_; 130 ActionType action_type_;
131 131
132 // The visibility of the button at the time the menu opened. 132 // The visibility of the button at the time the menu opened.
133 ButtonVisibility button_visibility_; 133 ButtonVisibility button_visibility_;
134 134
135 // Menu matcher for context menu items specified by the extension. 135 // Menu matcher for context menu items specified by the extension.
136 scoped_ptr<ContextMenuMatcher> extension_items_; 136 std::unique_ptr<ContextMenuMatcher> extension_items_;
137 137
138 scoped_ptr<ui::SimpleMenuModel> page_access_submenu_; 138 std::unique_ptr<ui::SimpleMenuModel> page_access_submenu_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(ExtensionContextMenuModel); 140 DISALLOW_COPY_AND_ASSIGN(ExtensionContextMenuModel);
141 }; 141 };
142 142
143 } // namespace extensions 143 } // namespace extensions
144 144
145 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ 145 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698