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

Unified Diff: ui/display/screen_base.h

Issue 2431473002: Change single-display screens to use ScreenBase and DisplayList. (Closed)
Patch Set: renderer test Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/display_list.cc ('k') | ui/display/screen_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen_base.h
diff --git a/ui/display/screen_base.h b/ui/display/screen_base.h
index 3b206af14cbeaebd88e1cba8807df9ac54931e9a..e03d59018bca33e23979447e2f3aba6bf9958e5d 100644
--- a/ui/display/screen_base.h
+++ b/ui/display/screen_base.h
@@ -20,14 +20,9 @@ class DISPLAY_EXPORT ScreenBase : public Screen {
ScreenBase();
~ScreenBase() override;
- DisplayList* display_list() { return &display_list_; }
+ DisplayList& display_list() { return display_list_; };
+ const DisplayList& display_list() const { return display_list_; };
- protected:
- // Invoked when a display changed in some way, including being added.
- // If |is_primary| is true, |changed_display| is the primary display.
- void ProcessDisplayChanged(const Display& changed_display, bool is_primary);
-
- private:
// Screen:
gfx::Point GetCursorScreenPoint() override;
bool IsWindowUnderCursor(gfx::NativeWindow window) override;
@@ -41,6 +36,12 @@ class DISPLAY_EXPORT ScreenBase : public Screen {
void AddObserver(DisplayObserver* observer) override;
void RemoveObserver(DisplayObserver* observer) override;
+ protected:
+ // Invoked when a display changed in some way, including being added.
+ // If |is_primary| is true, |changed_display| is the primary display.
+ void ProcessDisplayChanged(const Display& changed_display, bool is_primary);
+
+ private:
DisplayList display_list_;
DISALLOW_COPY_AND_ASSIGN(ScreenBase);
« no previous file with comments | « ui/display/display_list.cc ('k') | ui/display/screen_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698