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

Side by Side Diff: ui/display/manager/chromeos/test/test_native_display_delegate.h

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 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_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_DISPLAY_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_DISPLAY_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "ui/display/manager/chromeos/test/action_logger.h" 14 #include "ui/display/manager/chromeos/test/action_logger.h"
15 #include "ui/display/manager/chromeos/test/action_logger_util.h" 15 #include "ui/display/manager/chromeos/test/action_logger_util.h"
16 #include "ui/display/types/native_display_delegate.h" 16 #include "ui/display/types/native_display_delegate.h"
17 17
18 namespace ui { 18 namespace display {
19 19
20 class ActionLogger; 20 class ActionLogger;
21 class DisplaySnapshot; 21 class DisplaySnapshot;
22 class NativeDisplayObserver; 22 class NativeDisplayObserver;
23 23
24 namespace test { 24 namespace test {
25 25
26 class TestNativeDisplayDelegate : public NativeDisplayDelegate { 26 class TestNativeDisplayDelegate : public NativeDisplayDelegate {
27 public: 27 public:
28 // Ownership of |log| remains with the caller. 28 // Ownership of |log| remains with the caller.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void Configure(const DisplaySnapshot& output, 66 void Configure(const DisplaySnapshot& output,
67 const DisplayMode* mode, 67 const DisplayMode* mode,
68 const gfx::Point& origin, 68 const gfx::Point& origin,
69 const ConfigureCallback& callback) override; 69 const ConfigureCallback& callback) override;
70 void CreateFrameBuffer(const gfx::Size& size) override; 70 void CreateFrameBuffer(const gfx::Size& size) override;
71 void GetHDCPState(const DisplaySnapshot& output, 71 void GetHDCPState(const DisplaySnapshot& output,
72 const GetHDCPStateCallback& callback) override; 72 const GetHDCPStateCallback& callback) override;
73 void SetHDCPState(const DisplaySnapshot& output, 73 void SetHDCPState(const DisplaySnapshot& output,
74 HDCPState state, 74 HDCPState state,
75 const SetHDCPStateCallback& callback) override; 75 const SetHDCPStateCallback& callback) override;
76 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 76 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
77 const DisplaySnapshot& output) override; 77 const DisplaySnapshot& output) override;
78 bool SetColorCalibrationProfile( 78 bool SetColorCalibrationProfile(const DisplaySnapshot& output,
79 const DisplaySnapshot& output, 79 ColorCalibrationProfile new_profile) override;
80 ui::ColorCalibrationProfile new_profile) override; 80 bool SetColorCorrection(const DisplaySnapshot& output,
81 bool SetColorCorrection(const ui::DisplaySnapshot& output,
82 const std::vector<GammaRampRGBEntry>& degamma_lut, 81 const std::vector<GammaRampRGBEntry>& degamma_lut,
83 const std::vector<GammaRampRGBEntry>& gamma_lut, 82 const std::vector<GammaRampRGBEntry>& gamma_lut,
84 const std::vector<float>& correction_matrix) override; 83 const std::vector<float>& correction_matrix) override;
85 void AddObserver(NativeDisplayObserver* observer) override; 84 void AddObserver(NativeDisplayObserver* observer) override;
86 void RemoveObserver(NativeDisplayObserver* observer) override; 85 void RemoveObserver(NativeDisplayObserver* observer) override;
87 display::FakeDisplayController* GetFakeDisplayController() override; 86 FakeDisplayController* GetFakeDisplayController() override;
88 87
89 private: 88 private:
90 bool Configure(const DisplaySnapshot& output, 89 bool Configure(const DisplaySnapshot& output,
91 const DisplayMode* mode, 90 const DisplayMode* mode,
92 const gfx::Point& origin); 91 const gfx::Point& origin);
93 92
94 // Outputs to be returned by GetDisplays(). 93 // Outputs to be returned by GetDisplays().
95 std::vector<DisplaySnapshot*> outputs_; 94 std::vector<DisplaySnapshot*> outputs_;
96 95
97 // |max_configurable_pixels_| represents the maximum number of pixels that 96 // |max_configurable_pixels_| represents the maximum number of pixels that
(...skipping 14 matching lines...) Expand all
112 bool run_async_; 111 bool run_async_;
113 112
114 ActionLogger* log_; // Not owned. 113 ActionLogger* log_; // Not owned.
115 114
116 base::ObserverList<NativeDisplayObserver> observers_; 115 base::ObserverList<NativeDisplayObserver> observers_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); 117 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate);
119 }; 118 };
120 119
121 } // namespace test 120 } // namespace test
122 } // namespace ui 121 } // namespace display
123 122
124 #endif // UI_DISPLAY_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 123 #endif // UI_DISPLAY_MANAGER_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698