Implement desktop capture API on OS X.

This commit is contained in:
Haojian Wu 2015-10-02 17:50:10 +08:00
parent a0638fe801
commit c9fbde321c
12 changed files with 768 additions and 6 deletions

View file

@ -6,7 +6,9 @@
#define ATOM_BROWSER_API_ATOM_API_SCREEN_H_
#include <vector>
#include <string>
#include "atom/browser/api/atom_api_desktop_capturer.h"
#include "atom/browser/api/event_emitter.h"
#include "native_mate/handle.h"
#include "ui/gfx/display_observer.h"
@ -36,6 +38,9 @@ class Screen : public mate::EventEmitter,
gfx::Display GetDisplayNearestPoint(const gfx::Point& point);
gfx::Display GetDisplayMatching(const gfx::Rect& match_rect);
mate::Handle<DesktopCapturer> GetDesktopCapturer(
const std::vector<std::string>& sources);
// gfx::DisplayObserver:
void OnDisplayAdded(const gfx::Display& new_display) override;
void OnDisplayRemoved(const gfx::Display& old_display) override;