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

Side by Side Diff: chrome/browser/extensions/window_controller.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_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Populates a dictionary for the Window object. Override this to set 79 // Populates a dictionary for the Window object. Override this to set
80 // implementation specific properties (call the base implementation first to 80 // implementation specific properties (call the base implementation first to
81 // set common properties). 81 // set common properties).
82 virtual base::DictionaryValue* CreateWindowValue() const; 82 virtual base::DictionaryValue* CreateWindowValue() const;
83 83
84 // Populates a dictionary for the Window object, including a list of tabs. 84 // Populates a dictionary for the Window object, including a list of tabs.
85 virtual base::DictionaryValue* CreateWindowValueWithTabs( 85 virtual base::DictionaryValue* CreateWindowValueWithTabs(
86 const extensions::Extension* extension) const = 0; 86 const extensions::Extension* extension) const = 0;
87 87
88 virtual scoped_ptr<api::tabs::Tab> CreateTabObject( 88 virtual std::unique_ptr<api::tabs::Tab> CreateTabObject(
89 const extensions::Extension* extension, 89 const extensions::Extension* extension,
90 int tab_index) const = 0; 90 int tab_index) const = 0;
91 91
92 // DEPRECATED: Use scoped_ptr<api::tabs::Tab> CreateTabObject(...) 92 // DEPRECATED: Use std::unique_ptr<api::tabs::Tab> CreateTabObject(...)
93 virtual base::DictionaryValue* CreateTabValue( 93 virtual base::DictionaryValue* CreateTabValue(
94 const extensions::Extension* extension, int tab_index) const = 0; 94 const extensions::Extension* extension, int tab_index) const = 0;
95 95
96 // Returns false if the window is in a state where closing the window is not 96 // Returns false if the window is in a state where closing the window is not
97 // permitted and sets |reason| if not NULL. 97 // permitted and sets |reason| if not NULL.
98 virtual bool CanClose(Reason* reason) const = 0; 98 virtual bool CanClose(Reason* reason) const = 0;
99 99
100 // Set the window's fullscreen state. |extension_url| provides the url 100 // Set the window's fullscreen state. |extension_url| provides the url
101 // associated with the extension (used by FullscreenController). 101 // associated with the extension (used by FullscreenController).
102 virtual void SetFullscreenMode(bool is_fullscreen, 102 virtual void SetFullscreenMode(bool is_fullscreen,
(...skipping 13 matching lines...) Expand all
116 private: 116 private:
117 ui::BaseWindow* window_; 117 ui::BaseWindow* window_;
118 Profile* profile_; 118 Profile* profile_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(WindowController); 120 DISALLOW_COPY_AND_ASSIGN(WindowController);
121 }; 121 };
122 122
123 } // namespace extensions 123 } // namespace extensions
124 124
125 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ 125 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_startup_installer.cc ('k') | chrome/browser/extensions/zipfile_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698