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

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

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on tonikitoo's CL (included) 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
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) { }
93
94 // In case of ozone wayland, we need to wait for information of the compositor
95 // geometry.
96 virtual void WaitForScreenSizeAvailable() { }
97
91 private: 98 private:
92 DISALLOW_COPY_AND_ASSIGN(Screen); 99 DISALLOW_COPY_AND_ASSIGN(Screen);
93 }; 100 };
94 101
95 Screen* CreateNativeScreen(); 102 Screen* CreateNativeScreen();
96 103
97 } // namespace display 104 } // namespace display
98 105
99 #endif // UI_DISPLAY_SCREEN_H_ 106 #endif // UI_DISPLAY_SCREEN_H_
OLDNEW
« ui/aura/window_tree_host.cc ('K') | « ui/aura/window_tree_host.cc ('k') | ui/ozone/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698