| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_SNAPSHOT_H_ |
| 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_SNAPSHOT_H_ |
| 7 |
| 8 #include "ui/display/chromeos/display_snapshot.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 class DISPLAY_EXPORT TestDisplaySnapshot : public DisplaySnapshot { |
| 13 public: |
| 14 TestDisplaySnapshot(); |
| 15 TestDisplaySnapshot(int64_t display_id, |
| 16 bool has_proper_display_id, |
| 17 const gfx::Point& origin, |
| 18 const gfx::Size& physical_size, |
| 19 OutputType type, |
| 20 bool is_aspect_preserving_scaling, |
| 21 const std::vector<const DisplayMode*>& modes, |
| 22 const DisplayMode* current_mode, |
| 23 const DisplayMode* native_mode); |
| 24 virtual ~TestDisplaySnapshot(); |
| 25 |
| 26 void set_type(OutputType type) { type_ = type; } |
| 27 void set_modes(const std::vector<const DisplayMode*>& modes) { |
| 28 modes_ = modes; |
| 29 } |
| 30 void set_current_mode(const ui::DisplayMode* mode) { current_mode_ = mode; } |
| 31 void set_native_mode(const ui::DisplayMode* mode) { native_mode_ = mode; } |
| 32 void set_is_aspect_preserving_scaling(bool state) { |
| 33 is_aspect_preserving_scaling_ = state; |
| 34 } |
| 35 void set_display_id(int64_t id) { display_id_ = id; } |
| 36 void set_has_proper_display_id(bool has_display_id) { |
| 37 has_proper_display_id_ = has_display_id; |
| 38 } |
| 39 |
| 40 // DisplaySnapshot overrides: |
| 41 virtual std::string GetDisplayName() OVERRIDE; |
| 42 virtual bool GetOverscanFlag() OVERRIDE; |
| 43 virtual std::string ToString() const OVERRIDE; |
| 44 |
| 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(TestDisplaySnapshot); |
| 47 }; |
| 48 |
| 49 } // namespace ui |
| 50 |
| 51 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_SNAPSHOT_H_ |
| OLD | NEW |