OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "extensions/shell/browser/shell_screen.h" | 5 #include "extensions/shell/browser/shell_screen.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 int ShellScreen::GetNumDisplays() const { | 74 int ShellScreen::GetNumDisplays() const { |
75 return 1; | 75 return 1; |
76 } | 76 } |
77 | 77 |
78 std::vector<display::Display> ShellScreen::GetAllDisplays() const { | 78 std::vector<display::Display> ShellScreen::GetAllDisplays() const { |
79 return std::vector<display::Display>(1, display_); | 79 return std::vector<display::Display>(1, display_); |
80 } | 80 } |
81 | 81 |
82 display::Display ShellScreen::GetDisplayNearestWindow( | 82 display::Display ShellScreen::GetDisplayNearestWindow( |
83 gfx::NativeWindow window) const { | 83 const gfx::NativeWindow window) const { |
84 return display_; | 84 return display_; |
85 } | 85 } |
86 | 86 |
87 display::Display ShellScreen::GetDisplayNearestPoint( | 87 display::Display ShellScreen::GetDisplayNearestPoint( |
88 const gfx::Point& point) const { | 88 const gfx::Point& point) const { |
89 return display_; | 89 return display_; |
90 } | 90 } |
91 | 91 |
92 display::Display ShellScreen::GetDisplayMatching( | 92 display::Display ShellScreen::GetDisplayMatching( |
93 const gfx::Rect& match_rect) const { | 93 const gfx::Rect& match_rect) const { |
94 return display_; | 94 return display_; |
95 } | 95 } |
96 | 96 |
97 display::Display ShellScreen::GetPrimaryDisplay() const { | 97 display::Display ShellScreen::GetPrimaryDisplay() const { |
98 return display_; | 98 return display_; |
99 } | 99 } |
100 | 100 |
101 void ShellScreen::AddObserver(display::DisplayObserver* observer) {} | 101 void ShellScreen::AddObserver(display::DisplayObserver* observer) {} |
102 | 102 |
103 void ShellScreen::RemoveObserver(display::DisplayObserver* observer) {} | 103 void ShellScreen::RemoveObserver(display::DisplayObserver* observer) {} |
104 | 104 |
105 } // namespace extensions | 105 } // namespace extensions |
OLD | NEW |