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

Side by Side Diff: headless/lib/browser/headless_window_tree_host.h

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: Use forced color profile in display::Display ctor Created 3 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
7 7
8 #if defined(USE_AURA) 8 #if defined(USE_AURA)
9 9
10 #include <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 void ShowImpl() override; 41 void ShowImpl() override;
42 void HideImpl() override; 42 void HideImpl() override;
43 gfx::Rect GetBoundsInPixels() const override; 43 gfx::Rect GetBoundsInPixels() const override;
44 void SetBoundsInPixels(const gfx::Rect& bounds) override; 44 void SetBoundsInPixels(const gfx::Rect& bounds) override;
45 gfx::Point GetLocationOnScreenInPixels() const override; 45 gfx::Point GetLocationOnScreenInPixels() const override;
46 void SetCapture() override; 46 void SetCapture() override;
47 void ReleaseCapture() override; 47 void ReleaseCapture() override;
48 void SetCursorNative(gfx::NativeCursor cursor_type) override; 48 void SetCursorNative(gfx::NativeCursor cursor_type) override;
49 void MoveCursorToScreenLocationInPixels(const gfx::Point& location) override; 49 void MoveCursorToScreenLocationInPixels(const gfx::Point& location) override;
50 void OnCursorVisibilityChangedNative(bool show) override; 50 void OnCursorVisibilityChangedNative(bool show) override;
51 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
52 51
53 private: 52 private:
54 gfx::Rect bounds_; 53 gfx::Rect bounds_;
55 std::unique_ptr<aura::client::FocusClient> focus_client_; 54 std::unique_ptr<aura::client::FocusClient> focus_client_;
56 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; 55 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_;
57 56
58 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeHost); 57 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeHost);
59 }; 58 };
60 59
61 } // namespace headless 60 } // namespace headless
62 61
63 #else // defined(USE_AURA) 62 #else // defined(USE_AURA)
64 class HeadlessWindowTreeHost {}; 63 class HeadlessWindowTreeHost {};
65 #endif // defined(USE_AURA) 64 #endif // defined(USE_AURA)
66 65
67 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ 66 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | headless/lib/browser/headless_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698