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

Side by Side Diff: ui/aura/client/screen_position_client.h

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_AURA_SCREEN_POSITION_CLIENT_H_ 5 #ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_
6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_ 6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 10
(...skipping 22 matching lines...) Expand all
33 // into screen coordinate space. 33 // into screen coordinate space.
34 // A typical example of using this function instead of ConvertPointToScreen is 34 // A typical example of using this function instead of ConvertPointToScreen is
35 // when X's native input is captured by a drag operation. 35 // when X's native input is captured by a drag operation.
36 // See the comments for ash::GetRootWindowRelativeToWindow for details. 36 // See the comments for ash::GetRootWindowRelativeToWindow for details.
37 virtual void ConvertHostPointToScreen(Window* root_window, 37 virtual void ConvertHostPointToScreen(Window* root_window,
38 gfx::Point* point) = 0; 38 gfx::Point* point) = 0;
39 // Sets the bounds of the window. The implementation is responsible 39 // Sets the bounds of the window. The implementation is responsible
40 // for finding out and translating the right coordinates for the |window|. 40 // for finding out and translating the right coordinates for the |window|.
41 virtual void SetBounds(Window* window, 41 virtual void SetBounds(Window* window,
42 const gfx::Rect& bounds, 42 const gfx::Rect& bounds,
43 const gfx::Display& display) = 0; 43 const display::Display& display) = 0;
44 }; 44 };
45 45
46 // Sets/Gets the activation client on the Window. 46 // Sets/Gets the activation client on the Window.
47 AURA_EXPORT void SetScreenPositionClient(Window* root_window, 47 AURA_EXPORT void SetScreenPositionClient(Window* root_window,
48 ScreenPositionClient* client); 48 ScreenPositionClient* client);
49 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient( 49 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient(
50 const Window* root_window); 50 const Window* root_window);
51 51
52 } // namespace clients 52 } // namespace clients
53 } // namespace aura 53 } // namespace aura
54 54
55 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_ 55 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698