| OLD | NEW |
| 1 // Copyright (c) 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 #include "mojo/aura/screen_mojo.h" | 5 #include "mojo/aura/screen_mojo.h" |
| 6 | 6 |
| 7 #include "ui/gfx/native_widget_types.h" | 7 #include "ui/gfx/native_widget_types.h" |
| 8 #include "ui/gfx/rect_conversions.h" | 8 #include "ui/gfx/rect_conversions.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 | 11 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void ScreenMojo::RemoveObserver(gfx::DisplayObserver* observer) { | 67 void ScreenMojo::RemoveObserver(gfx::DisplayObserver* observer) { |
| 68 } | 68 } |
| 69 | 69 |
| 70 ScreenMojo::ScreenMojo(const gfx::Rect& screen_bounds) { | 70 ScreenMojo::ScreenMojo(const gfx::Rect& screen_bounds) { |
| 71 static int64 synthesized_display_id = 2000; | 71 static int64 synthesized_display_id = 2000; |
| 72 display_.set_id(synthesized_display_id++); | 72 display_.set_id(synthesized_display_id++); |
| 73 display_.SetScaleAndBounds(1.0f, screen_bounds); | 73 display_.SetScaleAndBounds(1.0f, screen_bounds); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace mojo | 76 } // namespace mojo |
| OLD | NEW |