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

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

Issue 2661663002: Add DisplayPlacement/Layout mojoms + StructTraits. (Closed)
Patch Set: Remove empty comments. 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
« no previous file with comments | « no previous file | ui/display/display_layout.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_DISPLAY_DISPLAY_LAYOUT_H_ 5 #ifndef UI_DISPLAY_DISPLAY_LAYOUT_H_
6 #define UI_DISPLAY_DISPLAY_LAYOUT_H_ 6 #define UI_DISPLAY_DISPLAY_LAYOUT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int offset, 62 int offset,
63 OffsetReference offset_reference); 63 OffsetReference offset_reference);
64 DisplayPlacement(int64_t display_id, 64 DisplayPlacement(int64_t display_id,
65 int64_t parent_display_id, 65 int64_t parent_display_id,
66 Position position, 66 Position position,
67 int offset, 67 int offset,
68 OffsetReference offset_reference); 68 OffsetReference offset_reference);
69 69
70 DisplayPlacement(const DisplayPlacement& placement); 70 DisplayPlacement(const DisplayPlacement& placement);
71 71
72 bool operator==(const DisplayPlacement& other) const;
73 bool operator!=(const DisplayPlacement& other) const;
74
72 DisplayPlacement& Swap(); 75 DisplayPlacement& Swap();
73 76
74 std::string ToString() const; 77 std::string ToString() const;
75 78
76 static std::string PositionToString(Position position); 79 static std::string PositionToString(Position position);
77 static bool StringToPosition(const base::StringPiece& string, 80 static bool StringToPosition(const base::StringPiece& string,
78 Position* position); 81 Position* position);
79 }; 82 };
80 83
81 class DISPLAY_EXPORT DisplayLayout final { 84 class DISPLAY_EXPORT DisplayLayout final {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, 128 static bool ApplyDisplayPlacement(const DisplayPlacement& placement,
126 Displays* display_list, 129 Displays* display_list,
127 int minimum_offset_overlap); 130 int minimum_offset_overlap);
128 131
129 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); 132 DISALLOW_COPY_AND_ASSIGN(DisplayLayout);
130 }; 133 };
131 134
132 } // namespace display 135 } // namespace display
133 136
134 #endif // UI_DISPLAY_DISPLAY_LAYOUT_H_ 137 #endif // UI_DISPLAY_DISPLAY_LAYOUT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/display/display_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698