OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |