add a use_alsa gyp setting
[chromium-blink-merge.git] / ui / gfx / screen_win.h
blobf6b7d40ae8d8b0c850198bca0957458a82f58fac
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_GFX_SCREEN_WIN_H_
6 #define UI_GFX_SCREEN_WIN_H_
8 #include "base/compiler_specific.h"
9 #include "ui/base/ui_export.h"
10 #include "ui/gfx/screen.h"
12 namespace gfx {
14 class UI_EXPORT ScreenWin : public gfx::Screen {
15 public:
16 ScreenWin();
17 virtual ~ScreenWin();
19 protected:
20 // Overridden from gfx::Screen:
21 virtual bool IsDIPEnabled() OVERRIDE;
22 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
23 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
24 virtual int GetNumDisplays() OVERRIDE;
25 virtual gfx::Display GetDisplayNearestWindow(
26 gfx::NativeView window) const OVERRIDE;
27 virtual gfx::Display GetDisplayNearestPoint(
28 const gfx::Point& point) const OVERRIDE;
29 virtual gfx::Display GetDisplayMatching(
30 const gfx::Rect& match_rect) const OVERRIDE;
31 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE;
32 virtual void AddObserver(DisplayObserver* observer) OVERRIDE;
33 virtual void RemoveObserver(DisplayObserver* observer) OVERRIDE;
35 // Returns the HWND associated with the NativeView.
36 virtual HWND GetHWNDFromNativeView(NativeView window) const;
38 // Returns the NativeView associated with the HWND.
39 virtual NativeWindow GetNativeWindowFromHWND(HWND hwnd) const;
41 private:
42 DISALLOW_COPY_AND_ASSIGN(ScreenWin);
45 } // namespace gfx
47 #endif // UI_GFX_SCREEN_WIN_H_