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

Side by Side Diff: extensions/browser/api/system_display/system_display_apitest.cc

Issue 1935083003: gfx::Screen: Replace GetWindowUnderCursor() with IsWindowUnderCursor(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Null checks 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698