Chromium Code Reviews| 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 |