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

Side by Side Diff: chrome/browser/extensions/api/system_info_display/display_info_provider.h

Issue 11882009: Multi-monitor extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 179043. Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_display/display_info_provider.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVIDER_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVIDER_ H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVIDER_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVIDER_ H_
7 7
8 #include "chrome/browser/extensions/system_info_provider.h" 8 #include "chrome/browser/extensions/system_info_provider.h"
9 #include "chrome/common/extensions/api/experimental_system_info_display.h" 9 #include "chrome/common/extensions/api/system_info_display.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 typedef std::vector<linked_ptr< 13 typedef std::vector<linked_ptr<
14 api::experimental_system_info_display::DisplayUnitInfo> > DisplayInfo; 14 api::system_info_display::DisplayUnitInfo> > DisplayInfo;
15 15
16 class DisplayInfoProvider : public SystemInfoProvider<DisplayInfo> { 16 class DisplayInfoProvider : public SystemInfoProvider<DisplayInfo> {
17 public: 17 public:
18 static DisplayInfoProvider* Get(); 18 static DisplayInfoProvider* GetDisplayInfo();
19 19
20 // Overriden from SystemInfoProvider<DisplayInfo>. 20 // Overriden from SystemInfoProvider<DisplayInfo>.
21 virtual bool QueryInfo(DisplayInfo* info) OVERRIDE; 21 virtual bool QueryInfo(DisplayInfo* info) OVERRIDE;
22 22
23 protected: 23 protected:
24 friend class SystemInfoProvider<DisplayInfo>; 24 friend class SystemInfoProvider<DisplayInfo>;
25 25
26 DisplayInfoProvider() {} 26 DisplayInfoProvider() {}
27 virtual ~DisplayInfoProvider() {} 27 virtual ~DisplayInfoProvider() {}
28 28
29 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider); 29 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider);
30 }; 30 };
31 31
32 } // namespace extensions 32 } // namespace extensions
33 33
34 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVID ER_H_ 34 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_DISPLAY_INFO_PROVID ER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_display/display_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698