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

Side by Side Diff: chromecast/graphics/cast_screen.cc

Issue 1928143002: Rename gfx::Display/Screen to display::Display/Screen in chromecast/blimp/media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update blimp's gn for recent gn change Created 4 years, 7 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
« no previous file with comments | « chromecast/graphics/cast_screen.h ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/graphics/cast_screen.h" 5 #include "chromecast/graphics/cast_screen.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "ui/aura/env.h" 9 #include "ui/aura/env.h"
10 #include "ui/display/screen.h"
10 #include "ui/gfx/geometry/rect_conversions.h" 11 #include "ui/gfx/geometry/rect_conversions.h"
11 #include "ui/gfx/geometry/size_conversions.h" 12 #include "ui/gfx/geometry/size_conversions.h"
12 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/screen.h"
14 14
15 namespace chromecast { 15 namespace chromecast {
16 16
17 namespace { 17 namespace {
18 18
19 const int64_t kDisplayId = 1; 19 const int64_t kDisplayId = 1;
20 20
21 const int k720pWidth = 1280; 21 const int k720pWidth = 1280;
22 const int k720pHeight = 720; 22 const int k720pHeight = 720;
23 23
(...skipping 30 matching lines...) Expand all
54 } 54 }
55 55
56 gfx::NativeWindow CastScreen::GetWindowAtScreenPoint(const gfx::Point& point) { 56 gfx::NativeWindow CastScreen::GetWindowAtScreenPoint(const gfx::Point& point) {
57 return gfx::NativeWindow(nullptr); 57 return gfx::NativeWindow(nullptr);
58 } 58 }
59 59
60 int CastScreen::GetNumDisplays() const { 60 int CastScreen::GetNumDisplays() const {
61 return 1; 61 return 1;
62 } 62 }
63 63
64 std::vector<gfx::Display> CastScreen::GetAllDisplays() const { 64 std::vector<display::Display> CastScreen::GetAllDisplays() const {
65 return std::vector<gfx::Display>(1, display_); 65 return std::vector<display::Display>(1, display_);
66 } 66 }
67 67
68 gfx::Display CastScreen::GetDisplayNearestWindow( 68 display::Display CastScreen::GetDisplayNearestWindow(
69 gfx::NativeWindow window) const { 69 gfx::NativeWindow window) const {
70 return display_; 70 return display_;
71 } 71 }
72 72
73 gfx::Display CastScreen::GetDisplayNearestPoint(const gfx::Point& point) const { 73 display::Display CastScreen::GetDisplayNearestPoint(
74 const gfx::Point& point) const {
74 return display_; 75 return display_;
75 } 76 }
76 77
77 gfx::Display CastScreen::GetDisplayMatching(const gfx::Rect& match_rect) const { 78 display::Display CastScreen::GetDisplayMatching(
79 const gfx::Rect& match_rect) const {
78 return display_; 80 return display_;
79 } 81 }
80 82
81 gfx::Display CastScreen::GetPrimaryDisplay() const { 83 display::Display CastScreen::GetPrimaryDisplay() const {
82 return display_; 84 return display_;
83 } 85 }
84 86
85 void CastScreen::AddObserver(gfx::DisplayObserver* observer) { 87 void CastScreen::AddObserver(display::DisplayObserver* observer) {}
86 }
87 88
88 void CastScreen::RemoveObserver(gfx::DisplayObserver* observer) { 89 void CastScreen::RemoveObserver(display::DisplayObserver* observer) {}
89 }
90 90
91 CastScreen::CastScreen() : display_(kDisplayId) { 91 CastScreen::CastScreen() : display_(kDisplayId) {
92 display_.SetScaleAndBounds(1.0f, 92 display_.SetScaleAndBounds(1.0f,
93 gfx::Rect(kInitDisplayWidth, kInitDisplayHeight)); 93 gfx::Rect(kInitDisplayWidth, kInitDisplayHeight));
94 } 94 }
95 95
96 } // namespace chromecast 96 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/graphics/cast_screen.h ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698