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

Side by Side Diff: ui/display/screen.h

Issue 2042503002: ozone/platform/wayland: Add support for wl_output_interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hide the use of the base::Closure Created 4 years, 6 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 | « no previous file | ui/ozone/DEPS » ('j') | ui/ozone/platform/wayland/wayland_display.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DISPLAY_SCREEN_H_ 5 #ifndef UI_DISPLAY_SCREEN_H_
6 #define UI_DISPLAY_SCREEN_H_ 6 #define UI_DISPLAY_SCREEN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // If |view| is null, the primary display is used as the context. 81 // If |view| is null, the primary display is used as the context.
82 virtual gfx::Rect ScreenToDIPRectInWindow(gfx::NativeView view, 82 virtual gfx::Rect ScreenToDIPRectInWindow(gfx::NativeView view,
83 const gfx::Rect& screen_rect) const; 83 const gfx::Rect& screen_rect) const;
84 84
85 // Converts |dip_rect| to screen coordinates in the context of |view| clamping 85 // Converts |dip_rect| to screen coordinates in the context of |view| clamping
86 // to the enclosing rect if the coordinates do not fall on pixel boundaries. 86 // to the enclosing rect if the coordinates do not fall on pixel boundaries.
87 // If |view| is null, the primary display is used as the context. 87 // If |view| is null, the primary display is used as the context.
88 virtual gfx::Rect DIPToScreenRectInWindow(gfx::NativeView view, 88 virtual gfx::Rect DIPToScreenRectInWindow(gfx::NativeView view,
89 const gfx::Rect& dip_rect) const; 89 const gfx::Rect& dip_rect) const;
90 90
91 // Called when the compositor geometry has been changed.
92 virtual void OnOutputGeometryChanged(int32_t name, const gfx::Rect& rect) { }
Michael Forney 2016/06/14 23:44:54 What does this name field mean?
93
91 private: 94 private:
92 DISALLOW_COPY_AND_ASSIGN(Screen); 95 DISALLOW_COPY_AND_ASSIGN(Screen);
93 }; 96 };
94 97
95 Screen* CreateNativeScreen(); 98 Screen* CreateNativeScreen();
96 99
97 } // namespace display 100 } // namespace display
98 101
99 #endif // UI_DISPLAY_SCREEN_H_ 102 #endif // UI_DISPLAY_SCREEN_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/DEPS » ('j') | ui/ozone/platform/wayland/wayland_display.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698