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

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

Issue 2726603003: mus+ash: Copy parts of ScreenAsh to ScreenMus. (Closed)
Patch Set: Add unit tests. 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 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 16 matching lines...) Expand all
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(aura::Window* window) const override;
36 gfx::Point GetCursorScreenPoint() override; 36 gfx::Point GetCursorScreenPoint() override;
37 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
37 39
38 display::mojom::DisplayController* display_controller_; 40 display::mojom::DisplayController* display_controller_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 42 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
41 }; 43 };
42 44
43 } // namespace ash 45 } // namespace ash
44 46
45 #endif // ASH_MUS_SCREEN_MUS_H_ 47 #endif // ASH_MUS_SCREEN_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/screen_mus.cc » ('j') | ash/mus/screen_mus_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698