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

Side by Side Diff: ui/display/chromeos/native_display_delegate.h

Issue 208943002: Refactors getting available color profiles code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <vector>
9
8 #include "ui/display/display_constants.h" 10 #include "ui/display/display_constants.h"
9 #include "ui/display/display_export.h" 11 #include "ui/display/display_export.h"
10 12
11 namespace gfx { 13 namespace gfx {
12 class Point; 14 class Point;
13 class Size; 15 class Size;
14 } 16 }
15 17
16 namespace ui { 18 namespace ui {
17 class DisplayMode; 19 class DisplayMode;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void CreateFrameBuffer(const gfx::Size& size) = 0; 66 virtual void CreateFrameBuffer(const gfx::Size& size) = 0;
65 67
66 // Gets HDCP state of output. 68 // Gets HDCP state of output.
67 virtual bool GetHDCPState(const ui::DisplaySnapshot& output, 69 virtual bool GetHDCPState(const ui::DisplaySnapshot& output,
68 ui::HDCPState* state) = 0; 70 ui::HDCPState* state) = 0;
69 71
70 // Sets HDCP state of output. 72 // Sets HDCP state of output.
71 virtual bool SetHDCPState(const ui::DisplaySnapshot& output, 73 virtual bool SetHDCPState(const ui::DisplaySnapshot& output,
72 ui::HDCPState state) = 0; 74 ui::HDCPState state) = 0;
73 75
76 // Gets the available list of color calibrations.
77 virtual void GetAvailableColorCalibrationProfiles(
78 const ui::DisplaySnapshot& output,
79 std::vector<ui::ColorCalibrationProfile>* profiles) = 0;
oshima 2014/03/21 23:37:10 just return std::vector<ui::ColorCalibrationProfil
Jun Mukai 2014/03/22 00:20:29 Done.
80
74 // Sets the color calibration of |output| to |new_profile|. 81 // Sets the color calibration of |output| to |new_profile|.
75 virtual bool SetColorCalibrationProfile( 82 virtual bool SetColorCalibrationProfile(
76 const ui::DisplaySnapshot& output, 83 const ui::DisplaySnapshot& output,
77 ui::ColorCalibrationProfile new_profile) = 0; 84 ui::ColorCalibrationProfile new_profile) = 0;
78 85
79 virtual void AddObserver(NativeDisplayObserver* observer) = 0; 86 virtual void AddObserver(NativeDisplayObserver* observer) = 0;
80 87
81 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; 88 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0;
82 }; 89 };
83 90
84 } // namespace ui 91 } // namespace ui
85 92
86 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ 93 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698