Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / widget / desktop_aura / desktop_screen_position_client.h
blob6b563c0fa9ffde19cd9c21e74fb53535c489ab70
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.
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_
8 #include "ui/views/views_export.h"
9 #include "ui/wm/core/default_screen_position_client.h"
11 namespace views {
13 // Client that always offsets by the toplevel RootWindow of the passed
14 // in child NativeWidgetAura.
15 class VIEWS_EXPORT DesktopScreenPositionClient
16 : public wm::DefaultScreenPositionClient {
17 public:
18 explicit DesktopScreenPositionClient(aura::Window* root_window);
19 ~DesktopScreenPositionClient() override;
21 // aura::client::DefaultScreenPositionClient:
22 void SetBounds(aura::Window* window,
23 const gfx::Rect& bounds,
24 const gfx::Display& display) override;
26 private:
27 aura::Window* root_window_;
29 DISALLOW_COPY_AND_ASSIGN(DesktopScreenPositionClient);
32 } // namespace views
34 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_POSITION_CLIENT_H_