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

Side by Side Diff: mojo/aura/screen_mojo.h

Issue 263643004: Teach gfx::Screen about color profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mojo movers [sky]. Created 6 years, 7 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
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_AURA_SCREEN_MOJO_H_ 5 #ifndef MOJO_AURA_SCREEN_MOJO_H_
6 #define MOJO_AURA_SCREEN_MOJO_H_ 6 #define MOJO_AURA_SCREEN_MOJO_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/display.h" 9 #include "ui/gfx/display.h"
10 #include "ui/gfx/screen.h" 10 #include "ui/gfx/screen.h"
(...skipping 15 matching lines...) Expand all
26 // gfx::Screen overrides: 26 // gfx::Screen overrides:
27 virtual bool IsDIPEnabled() OVERRIDE; 27 virtual bool IsDIPEnabled() OVERRIDE;
28 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; 28 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
29 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; 29 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE;
30 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) 30 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point)
31 OVERRIDE; 31 OVERRIDE;
32 virtual int GetNumDisplays() const OVERRIDE; 32 virtual int GetNumDisplays() const OVERRIDE;
33 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; 33 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE;
34 virtual gfx::Display GetDisplayNearestWindow( 34 virtual gfx::Display GetDisplayNearestWindow(
35 gfx::NativeView view) const OVERRIDE; 35 gfx::NativeView view) const OVERRIDE;
36 virtual bool GetDisplayColorProfile(
37 gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE;
36 virtual gfx::Display GetDisplayNearestPoint( 38 virtual gfx::Display GetDisplayNearestPoint(
37 const gfx::Point& point) const OVERRIDE; 39 const gfx::Point& point) const OVERRIDE;
38 virtual gfx::Display GetDisplayMatching( 40 virtual gfx::Display GetDisplayMatching(
39 const gfx::Rect& match_rect) const OVERRIDE; 41 const gfx::Rect& match_rect) const OVERRIDE;
40 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; 42 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE;
41 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; 43 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE;
42 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; 44 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE;
43 45
44 private: 46 private:
45 explicit ScreenMojo(const gfx::Rect& screen_bounds); 47 explicit ScreenMojo(const gfx::Rect& screen_bounds);
46 48
47 gfx::Display display_; 49 gfx::Display display_;
48 50
49 DISALLOW_COPY_AND_ASSIGN(ScreenMojo); 51 DISALLOW_COPY_AND_ASSIGN(ScreenMojo);
50 }; 52 };
51 53
52 } // namespace mojo 54 } // namespace mojo
53 55
54 #endif // MOJO_AURA_SCREEN_MOJO_H_ 56 #endif // MOJO_AURA_SCREEN_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698