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

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

Issue 2522563002: Remove unnecessary display:: namespaces. (Closed)
Patch Set: Rebase. Created 4 years 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 | « ui/display/display_list.cc ('k') | ui/display/manager/display_layout_store.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_STORE_H_ 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_
6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "ui/display/display.h" 14 #include "ui/display/display.h"
15 #include "ui/display/display_export.h" 15 #include "ui/display/display_export.h"
16 #include "ui/display/manager/display_layout.h" 16 #include "ui/display/manager/display_layout.h"
17 17
18 namespace display { 18 namespace display {
19 19
20 class DISPLAY_EXPORT DisplayLayoutStore { 20 class DISPLAY_EXPORT DisplayLayoutStore {
21 public: 21 public:
22 DisplayLayoutStore(); 22 DisplayLayoutStore();
23 ~DisplayLayoutStore(); 23 ~DisplayLayoutStore();
24 24
25 void SetDefaultDisplayPlacement(const display::DisplayPlacement& placement); 25 void SetDefaultDisplayPlacement(const DisplayPlacement& placement);
26 26
27 // Registers the display layout info for the specified display(s). 27 // Registers the display layout info for the specified display(s).
28 void RegisterLayoutForDisplayIdList( 28 void RegisterLayoutForDisplayIdList(const DisplayIdList& list,
29 const display::DisplayIdList& list, 29 std::unique_ptr<DisplayLayout> layout);
30 std::unique_ptr<display::DisplayLayout> layout);
31 30
32 // If no layout is registered, it creatas new layout using 31 // If no layout is registered, it creatas new layout using
33 // |default_display_layout_|. 32 // |default_display_layout_|.
34 const display::DisplayLayout& GetRegisteredDisplayLayout( 33 const DisplayLayout& GetRegisteredDisplayLayout(const DisplayIdList& list);
35 const display::DisplayIdList& list);
36 34
37 // Update the multi display state in the display layout for 35 // Update the multi display state in the display layout for
38 // |display_list|. This creates new display layout if no layout is 36 // |display_list|. This creates new display layout if no layout is
39 // registered for |display_list|. 37 // registered for |display_list|.
40 void UpdateMultiDisplayState(const display::DisplayIdList& display_list, 38 void UpdateMultiDisplayState(const DisplayIdList& display_list,
41 bool mirrored, 39 bool mirrored,
42 bool default_unified); 40 bool default_unified);
43 41
44 private: 42 private:
45 // Creates new layout for display list from |default_display_layout_|. 43 // Creates new layout for display list from |default_display_layout_|.
46 display::DisplayLayout* CreateDefaultDisplayLayout( 44 DisplayLayout* CreateDefaultDisplayLayout(const DisplayIdList& display_list);
47 const display::DisplayIdList& display_list);
48 45
49 // The default display placement. 46 // The default display placement.
50 display::DisplayPlacement default_display_placement_; 47 DisplayPlacement default_display_placement_;
51 48
52 // Display layout per list of devices. 49 // Display layout per list of devices.
53 std::map<display::DisplayIdList, std::unique_ptr<display::DisplayLayout>> 50 std::map<DisplayIdList, std::unique_ptr<DisplayLayout>> layouts_;
54 layouts_;
55 51
56 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore); 52 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore);
57 }; 53 };
58 54
59 } // namespace display 55 } // namespace display
60 56
61 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_ 57 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_STORE_H_
OLDNEW
« no previous file with comments | « ui/display/display_list.cc ('k') | ui/display/manager/display_layout_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698