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

Unified Diff: chrome/browser/extensions/api/system_display/display_info_provider.h

Issue 507783003: Add GetActiveScreen to DisplayInfoProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_display/system_display_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/system_display/display_info_provider.h
diff --git a/chrome/browser/extensions/api/system_display/display_info_provider.h b/chrome/browser/extensions/api/system_display/display_info_provider.h
index bf578de590a10405aa8e2434416adb7f5b3fd7ed..96d198d9d75f1ddf5cb9302c38dc6f8dfb435b74 100644
--- a/chrome/browser/extensions/api/system_display/display_info_provider.h
+++ b/chrome/browser/extensions/api/system_display/display_info_provider.h
@@ -13,6 +13,7 @@
namespace gfx {
class Display;
+class Screen;
}
namespace extensions {
@@ -46,6 +47,10 @@ class DisplayInfoProvider {
const api::system_display::DisplayProperties& info,
std::string* error) = 0;
+ // Get the screen that is always active, which will be used for monitoring
+ // display changes events.
+ virtual gfx::Screen* GetActiveScreen() = 0;
+
DisplayInfo GetAllDisplaysInfo();
protected:
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_display/system_display_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698