Home | History | Annotate | Download | only in display
      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 ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
      6 #define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
      7 
      8 #include "base/basictypes.h"
      9 #include "ui/aura/client/screen_position_client.h"
     10 
     11 namespace ash {
     12 namespace internal {
     13 
     14 class ScreenPositionController : public aura::client::ScreenPositionClient {
     15  public:
     16   ScreenPositionController() {}
     17   virtual ~ScreenPositionController() {}
     18 
     19   // aura::client::ScreenPositionClient overrides:
     20   virtual void ConvertPointToScreen(const aura::Window* window,
     21                                     gfx::Point* point) OVERRIDE;
     22   virtual void ConvertPointFromScreen(const aura::Window* window,
     23                                       gfx::Point* point) OVERRIDE;
     24   virtual void ConvertHostPointToScreen(aura::RootWindow* window,
     25                                         gfx::Point* point) OVERRIDE;
     26   virtual void SetBounds(aura::Window* window,
     27                          const gfx::Rect& bounds,
     28                          const gfx::Display& display) OVERRIDE;
     29 
     30  private:
     31   DISALLOW_COPY_AND_ASSIGN(ScreenPositionController);
     32 };
     33 
     34 }  // internal
     35 }  // ash
     36 
     37 #endif  // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
     38