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

Unified Diff: chromecast/ui/gfx/screen_cast.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add two missing files I forgot to add in the previous patch set. Created 6 years, 6 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
Index: chromecast/ui/gfx/screen_cast.cc
diff --git a/chromecast/ui/gfx/screen_cast.cc b/chromecast/ui/gfx/screen_cast.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c14706251edc7d0dfa24db68c81d4fba74644d05
--- /dev/null
+++ b/chromecast/ui/gfx/screen_cast.cc
@@ -0,0 +1,72 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/ui/gfx/screen_cast.h"
+
+namespace chromecast {
+
+// static
+ScreenCast* ScreenCast::Create(const gfx::Size& size) {
+ const gfx::Size kDefaultSize(1280, 720);
+ return new ScreenCast(gfx::Rect(size.IsEmpty() ? kDefaultSize : size));
+}
+
+ScreenCast::~ScreenCast() {
+}
+
+bool ScreenCast::IsDIPEnabled() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+gfx::Point ScreenCast::GetCursorScreenPoint() {
+ NOTIMPLEMENTED();
+ return gfx::Point();
+}
+
+gfx::NativeWindow ScreenCast::GetWindowUnderCursor() {
+ return GetWindowAtScreenPoint(GetCursorScreenPoint());
+}
+
+gfx::NativeWindow ScreenCast::GetWindowAtScreenPoint(const gfx::Point& point) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+int ScreenCast::GetNumDisplays() const {
+ return 1;
+}
+
+std::vector<gfx::Display> ScreenCast::GetAllDisplays() const {
+ return std::vector<gfx::Display>(1, display_);
+}
+
+gfx::Display ScreenCast::GetDisplayNearestWindow(
+ gfx::NativeWindow window) const {
+ return display_;
+}
+
+gfx::Display ScreenCast::GetDisplayNearestPoint(const gfx::Point& point) const {
+ return display_;
+}
+
+gfx::Display ScreenCast::GetDisplayMatching(const gfx::Rect& match_rect) const {
+ return display_;
+}
+
+gfx::Display ScreenCast::GetPrimaryDisplay() const {
+ return display_;
+}
+
+void ScreenCast::AddObserver(gfx::DisplayObserver* observer) {
+}
+
+void ScreenCast::RemoveObserver(gfx::DisplayObserver* observer) {
+}
+
+ScreenCast::ScreenCast(const gfx::Rect& screen_bounds)
+ : display_(0, screen_bounds) {
+}
+
+} // namespace chromecast
« chromecast/shell/browser/cast_content_browser_client.cc ('K') | « chromecast/ui/gfx/screen_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698