OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/debug/leak_annotations.h" | 9 #include "base/debug/leak_annotations.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 display::Display display(i, bounds); | 33 display::Display display(i, bounds); |
34 display.set_work_area(work_area); | 34 display.set_work_area(work_area); |
35 displays_.push_back(display); | 35 displays_.push_back(display); |
36 } | 36 } |
37 } | 37 } |
38 ~MockScreen() override {} | 38 ~MockScreen() override {} |
39 | 39 |
40 protected: | 40 protected: |
41 // Overridden from display::Screen: | 41 // Overridden from display::Screen: |
42 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } | 42 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } |
43 gfx::NativeWindow GetWindowUnderCursor() override { | 43 bool IsWindowUnderCursor(gfx::NativeWindow window) override { return false; } |
44 return gfx::NativeWindow(); | |
45 } | |
46 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { | 44 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { |
47 return gfx::NativeWindow(); | 45 return gfx::NativeWindow(); |
48 } | 46 } |
49 int GetNumDisplays() const override { | 47 int GetNumDisplays() const override { |
50 return static_cast<int>(displays_.size()); | 48 return static_cast<int>(displays_.size()); |
51 } | 49 } |
52 std::vector<display::Display> GetAllDisplays() const override { | 50 std::vector<display::Display> GetAllDisplays() const override { |
53 return displays_; | 51 return displays_; |
54 } | 52 } |
55 display::Display GetDisplayNearestWindow( | 53 display::Display GetDisplayNearestWindow( |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 enable_unified_function->set_extension(test_extension.get()); | 294 enable_unified_function->set_extension(test_extension.get()); |
297 ASSERT_TRUE(api_test_utils::RunFunction(enable_unified_function.get(), | 295 ASSERT_TRUE(api_test_utils::RunFunction(enable_unified_function.get(), |
298 "[false]", browser_context())); | 296 "[false]", browser_context())); |
299 EXPECT_FALSE(provider_->unified_desktop_enabled()); | 297 EXPECT_FALSE(provider_->unified_desktop_enabled()); |
300 } | 298 } |
301 } | 299 } |
302 | 300 |
303 #endif // defined(OS_CHROMEOS) | 301 #endif // defined(OS_CHROMEOS) |
304 | 302 |
305 } // namespace extensions | 303 } // namespace extensions |
OLD | NEW |