OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_DISPLAY_TYPES_MOJO_DISPLAY_MODE_MOJO_H_ | |
kylechar
2017/01/24 21:15:07
UI_DISPLAY_DISPLAY_MODE_MOJO_H_
thanhph1
2017/01/25 16:26:17
Done.
| |
6 #define UI_DISPLAY_TYPES_MOJO_DISPLAY_MODE_MOJO_H_ | |
7 | |
8 #include "ui/display/display_export.h" | |
9 #include "ui/display/types/display_mode.h" | |
10 | |
11 namespace display { | |
12 | |
13 //Move-only class. | |
kylechar
2017/01/24 21:15:07
This comment isn't helpful. It would be better to
thanhph1
2017/01/25 16:26:17
Done.
| |
14 class DISPLAY_EXPORT DisplayModeMojo: public DisplayMode { | |
15 public: | |
kylechar
2017/01/24 21:15:07
You will also need a constructor that lets you set
thanhph1
2017/01/25 16:26:17
Done.
| |
16 DisplayModeMojo(); | |
17 ~DisplayModeMojo() override; | |
18 DisplayModeMojo(DisplayModeMojo &&) = default; | |
kylechar
2017/01/24 21:15:07
Move to cc file.
thanhph1
2017/01/25 16:26:17
Done.
| |
19 DisplayModeMojo& operator=(DisplayModeMojo &&) = default; | |
kylechar
2017/01/24 21:15:07
Move to cc file.
| |
20 }; | |
kylechar
2017/01/24 21:15:07
Missing DISALLOW_COPY_AND_ASSIGN.
| |
21 | |
22 } // namespace | |
23 | |
24 #endif // UI_DISPLAY_TYPES_MOJO_DISPLAY_MODE_MOJO_H_ | |
OLD | NEW |