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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 #include "chromecast/ui/gfx/screen_cast.h"
6
7 namespace chromecast {
8
9 // static
10 ScreenCast* ScreenCast::Create(const gfx::Size& size) {
11 const gfx::Size kDefaultSize(1280, 720);
12 return new ScreenCast(gfx::Rect(size.IsEmpty() ? kDefaultSize : size));
13 }
14
15 ScreenCast::~ScreenCast() {
16 }
17
18 bool ScreenCast::IsDIPEnabled() {
19 NOTIMPLEMENTED();
20 return false;
21 }
22
23 gfx::Point ScreenCast::GetCursorScreenPoint() {
24 NOTIMPLEMENTED();
25 return gfx::Point();
26 }
27
28 gfx::NativeWindow ScreenCast::GetWindowUnderCursor() {
29 return GetWindowAtScreenPoint(GetCursorScreenPoint());
30 }
31
32 gfx::NativeWindow ScreenCast::GetWindowAtScreenPoint(const gfx::Point& point) {
33 NOTIMPLEMENTED();
34 return NULL;
35 }
36
37 int ScreenCast::GetNumDisplays() const {
38 return 1;
39 }
40
41 std::vector<gfx::Display> ScreenCast::GetAllDisplays() const {
42 return std::vector<gfx::Display>(1, display_);
43 }
44
45 gfx::Display ScreenCast::GetDisplayNearestWindow(
46 gfx::NativeWindow window) const {
47 return display_;
48 }
49
50 gfx::Display ScreenCast::GetDisplayNearestPoint(const gfx::Point& point) const {
51 return display_;
52 }
53
54 gfx::Display ScreenCast::GetDisplayMatching(const gfx::Rect& match_rect) const {
55 return display_;
56 }
57
58 gfx::Display ScreenCast::GetPrimaryDisplay() const {
59 return display_;
60 }
61
62 void ScreenCast::AddObserver(gfx::DisplayObserver* observer) {
63 }
64
65 void ScreenCast::RemoveObserver(gfx::DisplayObserver* observer) {
66 }
67
68 ScreenCast::ScreenCast(const gfx::Rect& screen_bounds)
69 : display_(0, screen_bounds) {
70 }
71
72 } // namespace chromecast
OLDNEW
« 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