app_list/chromeos: Launch search results in a new tab.
[chromium-blink-merge.git] / ash / screen_ash.h
blobbfe29b3f782685c23889f974b5f59751c17015e2
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 ASH_SCREEN_ASH_H_
6 #define ASH_SCREEN_ASH_H_
7 #pragma once
9 #include "ash/ash_export.h"
10 #include "base/compiler_specific.h"
11 #include "ui/gfx/insets.h"
12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/screen_impl.h"
15 namespace ash {
17 // Aura implementation of gfx::Screen. Implemented here to avoid circular
18 // dependencies.
19 class ASH_EXPORT ScreenAsh : public gfx::ScreenImpl {
20 public:
21 ScreenAsh();
22 virtual ~ScreenAsh();
24 // Returns the bounds for maximized windows. Maximized windows trigger
25 // auto-hiding the shelf.
26 static gfx::Rect GetMaximizedWindowBounds(aura::Window* window);
28 // Returns work area when a maximized window is not present.
29 static gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window);
31 protected:
32 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
33 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
35 virtual int GetNumMonitors() OVERRIDE;
36 virtual gfx::Display GetMonitorNearestWindow(
37 gfx::NativeView view) const OVERRIDE;
38 virtual gfx::Display GetMonitorNearestPoint(
39 const gfx::Point& point) const OVERRIDE;
40 virtual gfx::Display GetPrimaryMonitor() const OVERRIDE;
42 private:
43 DISALLOW_COPY_AND_ASSIGN(ScreenAsh);
46 } // namespace ash
48 #endif // ASH_SCREEN_ASH_H_