OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chromeos/display/output_configurator.h" | 5 #include "chromeos/display/output_configurator.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstdarg> | 8 #include <cstdarg> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 class TestStateController : public OutputConfigurator::StateController { | 314 class TestStateController : public OutputConfigurator::StateController { |
315 public: | 315 public: |
316 TestStateController() : state_(STATE_DUAL_EXTENDED) {} | 316 TestStateController() : state_(STATE_DUAL_EXTENDED) {} |
317 virtual ~TestStateController() {} | 317 virtual ~TestStateController() {} |
318 | 318 |
319 void set_state(OutputState state) { state_ = state; } | 319 void set_state(OutputState state) { state_ = state; } |
320 | 320 |
321 // OutputConfigurator::StateController overrides: | 321 // OutputConfigurator::StateController overrides: |
322 virtual OutputState GetStateForDisplayIds( | 322 virtual OutputState GetStateForDisplayIds( |
323 const std::vector<int64>& outputs) const OVERRIDE { return state_; } | 323 const std::vector<int64>& outputs) const OVERRIDE { return state_; } |
324 virtual bool GetResolutionForDisplayId( | 324 virtual bool GetResolutionForDisplayId(int64 display_id, |
325 int64 display_id, | 325 int* width, |
326 int *width, | 326 int* height, |
327 int *height) const OVERRIDE { | 327 float* refresh_rate) const OVERRIDE { |
328 return false; | 328 return false; |
329 } | 329 } |
330 | 330 |
331 private: | 331 private: |
332 OutputState state_; | 332 OutputState state_; |
333 | 333 |
334 DISALLOW_COPY_AND_ASSIGN(TestStateController); | 334 DISALLOW_COPY_AND_ASSIGN(TestStateController); |
335 }; | 335 }; |
336 | 336 |
337 class TestMirroringController | 337 class TestMirroringController |
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 GetCrtcAction(outputs_[1].crtc, 0, | 1439 GetCrtcAction(outputs_[1].crtc, 0, |
1440 outputs_[1].mode_infos[kFirstMode].height + | 1440 outputs_[1].mode_infos[kFirstMode].height + |
1441 OutputConfigurator::kVerticalGap, kFirstMode + 3, | 1441 OutputConfigurator::kVerticalGap, kFirstMode + 3, |
1442 outputs_[1].output).c_str(), | 1442 outputs_[1].output).c_str(), |
1443 kUngrab, kProjectingOn, NULL), | 1443 kUngrab, kProjectingOn, NULL), |
1444 delegate_->GetActionsAndClear()); | 1444 delegate_->GetActionsAndClear()); |
1445 | 1445 |
1446 } | 1446 } |
1447 | 1447 |
1448 } // namespace chromeos | 1448 } // namespace chromeos |
OLD | NEW |