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

Side by Side Diff: ui/display/mojo/display_snapshot_mojo.h

Issue 2646213002: Write mojom and StructTraits for DisplaySnapshot. (Closed)
Patch Set: use filepath mojom Created 3 years, 10 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
(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_MOJO_DISPLAY_SNAPSHOT_MOJO_H_
6 #define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_
7
8 #include "base/macros.h"
9 #include "ui/display/display_export.h"
10 #include "ui/display/types/display_snapshot.h"
11
12 namespace display {
13
14 // This class is used to create DisplaySnapshot IPC struct traits.
15 class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot {
16 public:
17 DisplaySnapshotMojo();
kylechar 2017/02/10 21:40:29 I don't think you need a default constructor?
thanhph1 2017/02/13 20:09:11 Done.
18 DisplaySnapshotMojo(int64_t display_id,
19 const gfx::Point& origin,
20 const gfx::Size& physical_size,
21 DisplayConnectionType type,
22 bool is_aspect_preserving_scaling,
23 bool has_overscan,
24 bool has_color_correction_matrix,
25 std::string display_name,
26 const base::FilePath& sys_path,
27 int64_t product_id,
28 DisplayModeList modes,
29 const std::vector<uint8_t>& edid,
30 const DisplayMode* current_mode,
31 const DisplayMode* native_mode);
32 ~DisplaySnapshotMojo() override;
33 std::string ToString() const override;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotMojo);
37 };
38
39 } // namespace display
40
41 #endif // UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698