Refine: make desktop-capturer as a renderer module.

This commit is contained in:
Haojian Wu 2015-10-04 09:35:00 +08:00
parent 48fbd47416
commit 1e69ef79de
12 changed files with 237 additions and 74 deletions

View file

@ -6,9 +6,7 @@
#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"
@ -38,9 +36,6 @@ 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;