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

Side by Side Diff: chrome/browser/ui/webui/chromeos/first_run/first_run_actor.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class FirstRunActor { 18 class FirstRunActor {
19 public: 19 public:
20 class Delegate { 20 class Delegate {
(...skipping 27 matching lines...) Expand all
48 // Initializes fields in "non-set" state. 48 // Initializes fields in "non-set" state.
49 StepPosition(); 49 StepPosition();
50 50
51 // Setters for properties. Return |*this|. 51 // Setters for properties. Return |*this|.
52 StepPosition& SetTop(int top); 52 StepPosition& SetTop(int top);
53 StepPosition& SetRight(int right); 53 StepPosition& SetRight(int right);
54 StepPosition& SetBottom(int bottom); 54 StepPosition& SetBottom(int bottom);
55 StepPosition& SetLeft(int left); 55 StepPosition& SetLeft(int left);
56 56
57 // Returns DictionaryValue containing set properties. 57 // Returns DictionaryValue containing set properties.
58 scoped_ptr<base::DictionaryValue> AsValue() const; 58 std::unique_ptr<base::DictionaryValue> AsValue() const;
59 59
60 private: 60 private:
61 int top_; 61 int top_;
62 int right_; 62 int right_;
63 int bottom_; 63 int bottom_;
64 int left_; 64 int left_;
65 }; 65 };
66 66
67 FirstRunActor(); 67 FirstRunActor();
68 virtual ~FirstRunActor(); 68 virtual ~FirstRunActor();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 Delegate* delegate() const { return delegate_; } 106 Delegate* delegate() const { return delegate_; }
107 107
108 private: 108 private:
109 Delegate* delegate_; 109 Delegate* delegate_;
110 }; 110 };
111 111
112 } // namespace chromeos 112 } // namespace chromeos
113 113
114 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_ 114 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_ACTOR_H_
115 115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698