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

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

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 years, 9 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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { 48 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override {
49 return gfx::NativeWindow(); 49 return gfx::NativeWindow();
50 } 50 }
51 int GetNumDisplays() const override { 51 int GetNumDisplays() const override {
52 return static_cast<int>(displays_.size()); 52 return static_cast<int>(displays_.size());
53 } 53 }
54 const std::vector<display::Display>& GetAllDisplays() const override { 54 const std::vector<display::Display>& GetAllDisplays() const override {
55 return displays_; 55 return displays_;
56 } 56 }
57 display::Display GetDisplayNearestWindow( 57 display::Display GetDisplayNearestWindow(
58 gfx::NativeView window) const override { 58 gfx::NativeWindow window) const override {
59 return display::Display(0); 59 return display::Display(0);
60 } 60 }
61 display::Display GetDisplayNearestPoint( 61 display::Display GetDisplayNearestPoint(
62 const gfx::Point& point) const override { 62 const gfx::Point& point) const override {
63 return display::Display(0); 63 return display::Display(0);
64 } 64 }
65 display::Display GetDisplayMatching( 65 display::Display GetDisplayMatching(
66 const gfx::Rect& match_rect) const override { 66 const gfx::Rect& match_rect) const override {
67 return display::Display(0); 67 return display::Display(0);
68 } 68 }
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 browser_context())); 473 browser_context()));
474 474
475 bool callback_result; 475 bool callback_result;
476 ASSERT_TRUE(result->GetAsBoolean(&callback_result)); 476 ASSERT_TRUE(result->GetAsBoolean(&callback_result));
477 ASSERT_TRUE(callback_result); 477 ASSERT_TRUE(callback_result);
478 } 478 }
479 479
480 #endif // !defined(OS_CHROMEOS) 480 #endif // !defined(OS_CHROMEOS)
481 481
482 } // namespace extensions 482 } // namespace extensions
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | extensions/shell/browser/shell_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698