OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_ |
| 7 |
| 8 #include "extensions/browser/api/system_display/display_info_provider.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class ShellDisplayInfoProvider : public DisplayInfoProvider { |
| 13 public: |
| 14 ShellDisplayInfoProvider(); |
| 15 virtual ~ShellDisplayInfoProvider(); |
| 16 |
| 17 // DisplayInfoProvider implementation. |
| 18 virtual bool SetInfo(const std::string& display_id, |
| 19 const core_api::system_display::DisplayProperties& info, |
| 20 std::string* error) OVERRIDE; |
| 21 virtual void UpdateDisplayUnitInfoForPlatform( |
| 22 const gfx::Display& display, |
| 23 extensions::core_api::system_display::DisplayUnitInfo* unit) OVERRIDE; |
| 24 virtual gfx::Screen* GetActiveScreen() OVERRIDE; |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ShellDisplayInfoProvider); |
| 28 }; |
| 29 |
| 30 } // namespace extensions |
| 31 |
| 32 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_ |
OLD | NEW |