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

Side by Side Diff: ash/mus/screen_mus.h

Issue 2804523002: Fix mistmached |GetDisplayNearest{Window,View}| param type (Closed)
Patch Set: window Created 3 years, 8 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
« no previous file with comments | « ash/laser/laser_pointer_view.cc ('k') | ash/mus/screen_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_MUS_SCREEN_MUS_H_ 5 #ifndef ASH_MUS_SCREEN_MUS_H_
6 #define ASH_MUS_SCREEN_MUS_H_ 6 #define ASH_MUS_SCREEN_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/display/screen_base.h" 9 #include "ui/display/screen_base.h"
10 10
(...skipping 14 matching lines...) Expand all
25 class ScreenMus : public display::ScreenBase { 25 class ScreenMus : public display::ScreenBase {
26 public: 26 public:
27 explicit ScreenMus(display::mojom::DisplayController* display_controller); 27 explicit ScreenMus(display::mojom::DisplayController* display_controller);
28 ~ScreenMus() override; 28 ~ScreenMus() override;
29 29
30 // Sets the work area of the display containing |window|. 30 // Sets the work area of the display containing |window|.
31 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets); 31 void SetWorkAreaInsets(aura::Window* window, const gfx::Insets& insets);
32 32
33 private: 33 private:
34 // display::ScreenBase: 34 // display::ScreenBase:
35 display::Display GetDisplayNearestWindow(aura::Window* window) const override; 35 display::Display GetDisplayNearestWindow(
36 gfx::NativeWindow window) const override;
36 gfx::Point GetCursorScreenPoint() override; 37 gfx::Point GetCursorScreenPoint() override;
37 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 38 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 39 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
39 40
40 display::mojom::DisplayController* display_controller_; 41 display::mojom::DisplayController* display_controller_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 43 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
43 }; 44 };
44 45
45 } // namespace ash 46 } // namespace ash
46 47
47 #endif // ASH_MUS_SCREEN_MUS_H_ 48 #endif // ASH_MUS_SCREEN_MUS_H_
OLDNEW
« no previous file with comments | « ash/laser/laser_pointer_view.cc ('k') | ash/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698