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

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

Issue 1913613002: Add place holder to move gfx::Display/Screen to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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_MANAGER_DISPLAY_LAYOUT_H_ 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_
6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 #include "ui/display/display_export.h" 16 #include "ui/display/display_export.h"
17 17
18 namespace base { 18 namespace base {
19 class Value; 19 class Value;
20 template <typename T> class JSONValueConverter; 20 template <typename T> class JSONValueConverter;
21 } 21 }
22 22
23 namespace gfx { 23 namespace gfx {
24 class Display; 24 class Display;
25 } 25 }
26 26
27 namespace display { 27 namespace display {
28 using Display = gfx::Display;
29 }
robliao 2016/04/23 01:15:36 Nit: This can combine with the namespace below.
oshima 2016/04/23 01:30:44 Done.
30
31 namespace display {
28 32
29 // An identifier used to manage display layout in DisplayManager / 33 // An identifier used to manage display layout in DisplayManager /
30 // DisplayLayoutStore. 34 // DisplayLayoutStore.
31 using DisplayIdList = std::vector<int64_t>; 35 using DisplayIdList = std::vector<int64_t>;
32 36
33 using DisplayList = std::vector<gfx::Display>; 37 using DisplayList = std::vector<gfx::Display>;
34 38
35 // DisplayPlacement specifies where the display (D) is placed relative 39 // DisplayPlacement specifies where the display (D) is placed relative
36 // to parent (P) display. In the following example, the display (D) 40 // to parent (P) display. In the following example, the display (D)
37 // given by |display_id| is placed at the left side of the parent 41 // given by |display_id| is placed at the left side of the parent
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, 123 static bool ApplyDisplayPlacement(const DisplayPlacement& placement,
120 DisplayList* display_list, 124 DisplayList* display_list,
121 int minimum_offset_overlap); 125 int minimum_offset_overlap);
122 126
123 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); 127 DISALLOW_COPY_AND_ASSIGN(DisplayLayout);
124 }; 128 };
125 129
126 } // namespace display 130 } // namespace display
127 131
128 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ 132 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698