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

Side by Side Diff: mojo/aura/screen_mojo.h

Issue 672823002: Remove IsDIPEnabled from Screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-1
Patch Set: rebase Created 6 years, 1 month 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 | « extensions/browser/api/capture_web_contents_function.cc ('k') | mojo/aura/screen_mojo.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 MOJO_AURA_SCREEN_MOJO_H_ 5 #ifndef MOJO_AURA_SCREEN_MOJO_H_
6 #define MOJO_AURA_SCREEN_MOJO_H_ 6 #define MOJO_AURA_SCREEN_MOJO_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/display.h" 9 #include "ui/gfx/display.h"
10 #include "ui/gfx/screen.h" 10 #include "ui/gfx/screen.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 class Transform; 14 class Transform;
15 } 15 }
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 // A minimal implementation of gfx::Screen for mojo. 19 // A minimal implementation of gfx::Screen for mojo.
20 class ScreenMojo : public gfx::Screen { 20 class ScreenMojo : public gfx::Screen {
21 public: 21 public:
22 static ScreenMojo* Create(); 22 static ScreenMojo* Create();
23 ~ScreenMojo() override; 23 ~ScreenMojo() override;
24 24
25 protected: 25 protected:
26 // gfx::Screen overrides: 26 // gfx::Screen overrides:
27 bool IsDIPEnabled() override;
28 gfx::Point GetCursorScreenPoint() override; 27 gfx::Point GetCursorScreenPoint() override;
29 gfx::NativeWindow GetWindowUnderCursor() override; 28 gfx::NativeWindow GetWindowUnderCursor() override;
30 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 29 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
31 int GetNumDisplays() const override; 30 int GetNumDisplays() const override;
32 std::vector<gfx::Display> GetAllDisplays() const override; 31 std::vector<gfx::Display> GetAllDisplays() const override;
33 gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 32 gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
34 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override; 33 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
35 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override; 34 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
36 gfx::Display GetPrimaryDisplay() const override; 35 gfx::Display GetPrimaryDisplay() const override;
37 void AddObserver(gfx::DisplayObserver* observer) override; 36 void AddObserver(gfx::DisplayObserver* observer) override;
38 void RemoveObserver(gfx::DisplayObserver* observer) override; 37 void RemoveObserver(gfx::DisplayObserver* observer) override;
39 38
40 private: 39 private:
41 explicit ScreenMojo(const gfx::Rect& screen_bounds); 40 explicit ScreenMojo(const gfx::Rect& screen_bounds);
42 41
43 gfx::Display display_; 42 gfx::Display display_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(ScreenMojo); 44 DISALLOW_COPY_AND_ASSIGN(ScreenMojo);
46 }; 45 };
47 46
48 } // namespace mojo 47 } // namespace mojo
49 48
50 #endif // MOJO_AURA_SCREEN_MOJO_H_ 49 #endif // MOJO_AURA_SCREEN_MOJO_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/capture_web_contents_function.cc ('k') | mojo/aura/screen_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698