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

Unified Diff: ui/views/widget/desktop_screen_position_client_aura.h

Issue 10939006: Make cursors work on win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_screen_position_client_aura.h
===================================================================
--- ui/views/widget/desktop_screen_position_client_aura.h (revision 0)
+++ ui/views/widget/desktop_screen_position_client_aura.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGET_DESKTOP_SCREEN_POSITION_CLIENT_AURA_H_
+#define UI_VIEWS_WIDGET_DESKTOP_SCREEN_POSITION_CLIENT_AURA_H_
+
+#include "ui/aura/client/screen_position_client.h"
tfarina 2012/09/18 01:04:47 could you add basictypes.h and compiler_specific (
+#include "ui/views/views_export.h"
+
+namespace views {
+
+// Client that always offsets by the toplevel RootWindow of the passed
+// in child NativeWidgetAura.
+class VIEWS_EXPORT DesktopScreenPositionClient
+ : public aura::client::ScreenPositionClient {
+ public:
+ DesktopScreenPositionClient();
+ virtual ~DesktopScreenPositionClient();
+
+ // aura::client::ScreenPositionClient overrides:
tfarina 2012/09/18 01:04:47 can this be in a private section?
+ virtual void ConvertPointToScreen(const aura::Window* window,
+ gfx::Point* point) OVERRIDE;
+ virtual void ConvertPointFromScreen(const aura::Window* window,
+ gfx::Point* point) OVERRIDE;
+ virtual void SetBounds(aura::Window* window,
+ const gfx::Rect& bounds,
+ const gfx::Display& display) OVERRIDE;
+};
tfarina 2012/09/18 01:04:47 DISALLOW_COPY_AND_ASSIGN?
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_SCREEN_POSITION_CLIENT_AURA_H_
Property changes on: ui\views\widget\desktop_screen_position_client_aura.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/views/widget/desktop_root_window_host_win.cc ('k') | ui/views/widget/desktop_screen_position_client_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698