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

Side by Side Diff: ui/views/mus/screen_mus.h

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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef UI_VIEWS_MUS_SCREEN_MUS_H_ 5 #ifndef UI_VIEWS_MUS_SCREEN_MUS_H_
6 #define UI_VIEWS_MUS_SCREEN_MUS_H_ 6 #define UI_VIEWS_MUS_SCREEN_MUS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 26 matching lines...) Expand all
37 private: 37 private:
38 int FindDisplayIndexById(int64_t id) const; 38 int FindDisplayIndexById(int64_t id) const;
39 39
40 // Invoked when a display changed in some weay, including being added. 40 // Invoked when a display changed in some weay, including being added.
41 // If |is_primary| is true, |changed_display| is the primary display. 41 // If |is_primary| is true, |changed_display| is the primary display.
42 void ProcessDisplayChanged(const display::Display& changed_display, 42 void ProcessDisplayChanged(const display::Display& changed_display,
43 bool is_primary); 43 bool is_primary);
44 44
45 // display::Screen: 45 // display::Screen:
46 gfx::Point GetCursorScreenPoint() override; 46 gfx::Point GetCursorScreenPoint() override;
47 gfx::NativeWindow GetWindowUnderCursor() override; 47 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
48 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 48 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
49 display::Display GetPrimaryDisplay() const override; 49 display::Display GetPrimaryDisplay() const override;
50 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 50 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
51 display::Display GetDisplayNearestPoint( 51 display::Display GetDisplayNearestPoint(
52 const gfx::Point& point) const override; 52 const gfx::Point& point) const override;
53 int GetNumDisplays() const override; 53 int GetNumDisplays() const override;
54 std::vector<display::Display> GetAllDisplays() const override; 54 std::vector<display::Display> GetAllDisplays() const override;
55 display::Display GetDisplayMatching( 55 display::Display GetDisplayMatching(
56 const gfx::Rect& match_rect) const override; 56 const gfx::Rect& match_rect) const override;
57 void AddObserver(display::DisplayObserver* observer) override; 57 void AddObserver(display::DisplayObserver* observer) override;
(...skipping 11 matching lines...) Expand all
69 mojo::Binding<mus::mojom::DisplayManagerObserver> 69 mojo::Binding<mus::mojom::DisplayManagerObserver>
70 display_manager_observer_binding_; 70 display_manager_observer_binding_;
71 base::ObserverList<display::DisplayObserver> observers_; 71 base::ObserverList<display::DisplayObserver> observers_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 73 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
74 }; 74 };
75 75
76 } // namespace views 76 } // namespace views
77 77
78 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_ 78 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698