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

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

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

Powered by Google App Engine
This is Rietveld 408576698