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

Side by Side Diff: chrome/browser/ui/webui/options/font_settings_handler.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
11 #include "base/scoped_observer.h" 12 #include "base/scoped_observer.h"
12 #include "chrome/browser/ui/webui/options/options_ui.h" 13 #include "chrome/browser/ui/webui/options/options_ui.h"
13 #include "components/prefs/pref_member.h" 14 #include "components/prefs/pref_member.h"
14 #include "extensions/browser/extension_registry_observer.h" 15 #include "extensions/browser/extension_registry_observer.h"
15 16
16 namespace base { 17 namespace base {
17 class ListValue; 18 class ListValue;
18 } 19 }
19 20
(...skipping 23 matching lines...) Expand all
43 void OnExtensionLoaded(content::BrowserContext* browser_context, 44 void OnExtensionLoaded(content::BrowserContext* browser_context,
44 const extensions::Extension* extension) override; 45 const extensions::Extension* extension) override;
45 void OnExtensionUnloaded( 46 void OnExtensionUnloaded(
46 content::BrowserContext* browser_context, 47 content::BrowserContext* browser_context,
47 const extensions::Extension* extension, 48 const extensions::Extension* extension,
48 extensions::UnloadedExtensionInfo::Reason reason) override; 49 extensions::UnloadedExtensionInfo::Reason reason) override;
49 50
50 private: 51 private:
51 void HandleFetchFontsData(const base::ListValue* args); 52 void HandleFetchFontsData(const base::ListValue* args);
52 53
53 void FontsListHasLoaded(scoped_ptr<base::ListValue> list); 54 void FontsListHasLoaded(std::unique_ptr<base::ListValue> list);
54 55
55 void SetUpStandardFontSample(); 56 void SetUpStandardFontSample();
56 void SetUpSerifFontSample(); 57 void SetUpSerifFontSample();
57 void SetUpSansSerifFontSample(); 58 void SetUpSansSerifFontSample();
58 void SetUpFixedFontSample(); 59 void SetUpFixedFontSample();
59 void SetUpMinimumFontSample(); 60 void SetUpMinimumFontSample();
60 61
61 // Returns the Advanced Font Settings Extension if it's installed and enabled, 62 // Returns the Advanced Font Settings Extension if it's installed and enabled,
62 // or NULL otherwise. 63 // or NULL otherwise.
63 const extensions::Extension* GetAdvancedFontSettingsExtension(); 64 const extensions::Extension* GetAdvancedFontSettingsExtension();
(...skipping 19 matching lines...) Expand all
83 extension_registry_observer_; 84 extension_registry_observer_;
84 85
85 base::WeakPtrFactory<FontSettingsHandler> weak_ptr_factory_; 86 base::WeakPtrFactory<FontSettingsHandler> weak_ptr_factory_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); 88 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
88 }; 89 };
89 90
90 } // namespace options 91 } // namespace options
91 92
92 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 93 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/create_profile_handler.h ('k') | chrome/browser/ui/webui/options/font_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698