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

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

Issue 2646213002: Write mojom and StructTraits for DisplaySnapshot. (Closed)
Patch Set: Add back helper function CompareModes and revert changes in display_mode.(cc|h) 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_DISPLAY_SNAPSHOT_MOJO_H_
6 #define UI_DISPLAY_DISPLAY_SNAPSHOT_MOJO_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "ui/display/display_export.h"
12 #include "ui/display/types/display_snapshot.h"
13
14 namespace display {
15
16 // DisplaySnapshot implementation that can be used with Mojo IPC.
rjkroege 2017/03/01 15:46:27 This exists because we have a refactoring that's n
thanhph1 2017/03/01 16:29:07 Sounds good! We have this class because we can't i
17 class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot {
18 public:
19 DisplaySnapshotMojo(int64_t display_id,
20 const gfx::Point& origin,
21 const gfx::Size& physical_size,
22 DisplayConnectionType type,
23 bool is_aspect_preserving_scaling,
24 bool has_overscan,
25 bool has_color_correction_matrix,
26 std::string display_name,
27 const base::FilePath& sys_path,
28 int64_t product_id,
29 DisplayModeList modes,
30 const std::vector<uint8_t>& edid,
31 const DisplayMode* current_mode,
32 const DisplayMode* native_mode,
33 const gfx::Size& maximum_cursor_size);
34 ~DisplaySnapshotMojo() override;
35 std::unique_ptr<DisplaySnapshotMojo> Clone() const;
36
37 // DisplaySnapshot:
38 std::string ToString() const override;
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotMojo);
42 };
43
44 } // namespace display
45
46 #endif // UI_DISPLAY_DISPLAY_SNAPSHOT_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698