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

Side by Side Diff: ui/aura/mus/window_tree_host_mus.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, 5 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
« no previous file with comments | « headless/lib/browser/headless_window_tree_host.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int64_t display_id() const { return display_id_; } 89 int64_t display_id() const { return display_id_; }
90 display::Display GetDisplay() const; 90 display::Display GetDisplay() const;
91 91
92 // aura::WindowTreeHostPlatform: 92 // aura::WindowTreeHostPlatform:
93 void HideImpl() override; 93 void HideImpl() override;
94 void SetBoundsInPixels(const gfx::Rect& bounds) override; 94 void SetBoundsInPixels(const gfx::Rect& bounds) override;
95 void DispatchEvent(ui::Event* event) override; 95 void DispatchEvent(ui::Event* event) override;
96 void OnClosed() override; 96 void OnClosed() override;
97 void OnActivationChanged(bool active) override; 97 void OnActivationChanged(bool active) override;
98 void OnCloseRequest() override; 98 void OnCloseRequest() override;
99 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
100 void MoveCursorToScreenLocationInPixels( 99 void MoveCursorToScreenLocationInPixels(
101 const gfx::Point& location_in_pixels) override; 100 const gfx::Point& location_in_pixels) override;
102 101
103 private: 102 private:
104 int64_t display_id_; 103 int64_t display_id_;
105 104
106 WindowTreeHostMusDelegate* delegate_; 105 WindowTreeHostMusDelegate* delegate_;
107 106
108 bool in_set_bounds_from_server_ = false; 107 bool in_set_bounds_from_server_ = false;
109 108
110 std::unique_ptr<InputMethodMus> input_method_; 109 std::unique_ptr<InputMethodMus> input_method_;
111 110
112 std::unique_ptr<DisplayInitParams> display_init_params_; 111 std::unique_ptr<DisplayInitParams> display_init_params_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 113 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
115 }; 114 };
116 115
117 } // namespace aura 116 } // namespace aura
118 117
119 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 118 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_window_tree_host.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698