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

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

Issue 10409011: Aura/ash: On Desktops, use a aura::client to resolve screen coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge with trunk. Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/screen_position_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_
6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_
7 #pragma once
8
9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/window.h"
11
12 namespace aura {
13
14 class Event;
15 class Window;
16
17 namespace client {
18
19 // An interface implemented by an object that changes coordinates on a
20 // RootWindow into system coordinates.
21 class AURA_EXPORT ScreenPositionClient {
22 public:
23 // Converts the |screen_point| from a given RootWindow's coordinates space
24 // into screen coordinate space.
25 virtual void ConvertToScreenPoint(gfx::Point* screen_point) = 0;
26
27 virtual ~ScreenPositionClient() {}
28 };
29
30 // Sets/Gets the activation client on the Window.
31 AURA_EXPORT void SetScreenPositionClient(Window* window,
32 ScreenPositionClient* client);
33 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient(
34 Window* window);
35
36 } // namespace clients
37 } // namespace aura
38
39 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/screen_position_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698