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

Side by Side Diff: extensions/browser/api/system_display/display_info_provider.h

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: Fix closure and tests Created 3 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 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 EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const api::system_display::DisplayProperties& info, 53 const api::system_display::DisplayProperties& info,
54 std::string* error) = 0; 54 std::string* error) = 0;
55 55
56 // Implements SetDisplayLayout methods. See system_display.idl. Returns 56 // Implements SetDisplayLayout methods. See system_display.idl. Returns
57 // false if the layout input is invalid. 57 // false if the layout input is invalid.
58 virtual bool SetDisplayLayout(const DisplayLayoutList& layouts); 58 virtual bool SetDisplayLayout(const DisplayLayoutList& layouts);
59 59
60 // Enables the unified desktop feature. 60 // Enables the unified desktop feature.
61 virtual void EnableUnifiedDesktop(bool enable); 61 virtual void EnableUnifiedDesktop(bool enable);
62 62
63 // Gets display information. 63 // Returns a list of information for all displays. If |single_unified| is
64 virtual DisplayUnitInfoList GetAllDisplaysInfo(); 64 // true, when in unified mode a single display will be returned representing
65 // the single unified desktop.
66 virtual DisplayUnitInfoList GetAllDisplaysInfo(bool single_unified);
65 67
66 // Gets display layout information. 68 // Gets display layout information.
67 virtual DisplayLayoutList GetDisplayLayout(); 69 virtual DisplayLayoutList GetDisplayLayout();
68 70
69 // Implements overscan calbiration methods. See system_display.idl. These 71 // Implements overscan calbiration methods. See system_display.idl. These
70 // return false if |id| is invalid. 72 // return false if |id| is invalid.
71 virtual bool OverscanCalibrationStart(const std::string& id); 73 virtual bool OverscanCalibrationStart(const std::string& id);
72 virtual bool OverscanCalibrationAdjust( 74 virtual bool OverscanCalibrationAdjust(
73 const std::string& id, 75 const std::string& id,
74 const api::system_display::Insets& delta); 76 const api::system_display::Insets& delta);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void UpdateDisplayUnitInfoForPlatform( 110 virtual void UpdateDisplayUnitInfoForPlatform(
109 const display::Display& display, 111 const display::Display& display,
110 api::system_display::DisplayUnitInfo* unit) = 0; 112 api::system_display::DisplayUnitInfo* unit) = 0;
111 113
112 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider); 114 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider);
113 }; 115 };
114 116
115 } // namespace extensions 117 } // namespace extensions
116 118
117 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 119 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/fake_system_display.js ('k') | extensions/browser/api/system_display/display_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698