Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: ui/gfx/screen_impl.h

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some new gfx::Screen additions Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 UI_GFX_SCREEN_IMPL_H_
6 #define UI_GFX_SCREEN_IMPL_H_
7
8 #include "ui/gfx/display.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 namespace gfx {
12 class Display;
13 class Point;
14 class Rect;
15
16 // A class that provides |gfx::Screen|'s implementation on aura.
17 class UI_EXPORT ScreenImpl {
18 public:
19 virtual ~ScreenImpl() {}
20
21 virtual gfx::Point GetCursorScreenPoint() = 0;
22 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() = 0;
23
24 virtual int GetNumDisplays() = 0;
25 virtual gfx::Display GetDisplayNearestWindow(
26 gfx::NativeView window) const = 0;
27 virtual gfx::Display GetDisplayNearestPoint(
28 const gfx::Point& point) const = 0;
29 virtual gfx::Display GetDisplayMatching(
30 const gfx::Rect& match_rect) const = 0;
31 virtual gfx::Display GetPrimaryDisplay() const = 0;
32 };
33
34 } // namespace gfx
35
36 #endif // UI_GFX_SCREEN_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698