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

Side by Side Diff: ash/display/display_color_manager_chromeos.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
6 #define ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 6 #define ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
oshima 2016/04/08 07:09:40 include?
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "ui/display/chromeos/display_configurator.h" 18 #include "ui/display/chromeos/display_configurator.h"
19 #include "ui/display/types/display_constants.h" 19 #include "ui/display/types/display_constants.h"
20 20
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 std::vector<float> correction_matrix; 54 std::vector<float> correction_matrix;
55 }; 55 };
56 56
57 protected: 57 protected:
58 virtual void FinishLoadCalibrationForDisplay(int64_t display_id, 58 virtual void FinishLoadCalibrationForDisplay(int64_t display_id,
59 int64_t product_id, 59 int64_t product_id,
60 bool has_color_correction_matrix, 60 bool has_color_correction_matrix,
61 ui::DisplayConnectionType type, 61 ui::DisplayConnectionType type,
62 const base::FilePath& path, 62 const base::FilePath& path,
63 bool file_downloaded); 63 bool file_downloaded);
64 virtual void UpdateCalibrationData(int64_t display_id, 64 virtual void UpdateCalibrationData(
65 int64_t product_id, 65 int64_t display_id,
66 scoped_ptr<ColorCalibrationData> data); 66 int64_t product_id,
67 std::unique_ptr<ColorCalibrationData> data);
67 68
68 private: 69 private:
69 void ApplyDisplayColorCalibration(int64_t display_id, int64_t product_id); 70 void ApplyDisplayColorCalibration(int64_t display_id, int64_t product_id);
70 void LoadCalibrationForDisplay(const ui::DisplaySnapshot* display); 71 void LoadCalibrationForDisplay(const ui::DisplaySnapshot* display);
71 72
72 ui::DisplayConfigurator* configurator_; 73 ui::DisplayConfigurator* configurator_;
73 std::map<int64_t, ColorCalibrationData*> calibration_map_; 74 std::map<int64_t, ColorCalibrationData*> calibration_map_;
74 base::ThreadChecker thread_checker_; 75 base::ThreadChecker thread_checker_;
75 base::SequencedWorkerPool* blocking_pool_; 76 base::SequencedWorkerPool* blocking_pool_;
76 77
77 // Factory for callbacks. 78 // Factory for callbacks.
78 base::WeakPtrFactory<DisplayColorManager> weak_ptr_factory_; 79 base::WeakPtrFactory<DisplayColorManager> weak_ptr_factory_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(DisplayColorManager); 81 DISALLOW_COPY_AND_ASSIGN(DisplayColorManager);
81 }; 82 };
82 83
83 } // namespace ash 84 } // namespace ash
84 85
85 #endif // ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 86 #endif // ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698