summaryrefslogtreecommitdiff
path: root/chromium/ash/display/screen_position_controller.h
blob: 51bf50104053428511651f7921c9f28567e971fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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 ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
#define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_

#include "base/basictypes.h"
#include "ui/aura/client/screen_position_client.h"

namespace ash {
namespace internal {

class ScreenPositionController : public aura::client::ScreenPositionClient {
 public:
  ScreenPositionController() {}
  virtual ~ScreenPositionController() {}

  // aura::client::ScreenPositionClient overrides:
  virtual void ConvertPointToScreen(const aura::Window* window,
                                    gfx::Point* point) OVERRIDE;
  virtual void ConvertPointFromScreen(const aura::Window* window,
                                      gfx::Point* point) OVERRIDE;
  virtual void ConvertHostPointToScreen(aura::RootWindow* window,
                                        gfx::Point* point) OVERRIDE;
  virtual void SetBounds(aura::Window* window,
                         const gfx::Rect& bounds,
                         const gfx::Display& display) OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(ScreenPositionController);
};

}  // internal
}  // ash

#endif  // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_