OLD | NEW |
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 #include <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 mojom::ViewportMetrics metrics; | 305 mojom::ViewportMetrics metrics; |
306 metrics.size_in_pixels = mojo::Size::From(gfx::Size(400, 300)); | 306 metrics.size_in_pixels = mojo::Size::From(gfx::Size(400, 300)); |
307 metrics.device_pixel_ratio = 1.f; | 307 metrics.device_pixel_ratio = 1.f; |
308 delegate->OnViewportMetricsChanged(mojom::ViewportMetrics(), metrics); | 308 delegate->OnViewportMetricsChanged(mojom::ViewportMetrics(), metrics); |
309 } | 309 } |
310 void SchedulePaint(const ServerWindow* window, | 310 void SchedulePaint(const ServerWindow* window, |
311 const gfx::Rect& bounds) override {} | 311 const gfx::Rect& bounds) override {} |
312 void SetViewportSize(const gfx::Size& size) override {} | 312 void SetViewportSize(const gfx::Size& size) override {} |
313 void SetTitle(const base::string16& title) override {} | 313 void SetTitle(const base::string16& title) override {} |
314 void SetCursorById(int32_t cursor) override { *cursor_id_storage_ = cursor; } | 314 void SetCursorById(int32_t cursor) override { *cursor_id_storage_ = cursor; } |
| 315 mojom::Rotation GetRotation() override { return mojom::Rotation::VALUE_0; } |
315 const mojom::ViewportMetrics& GetViewportMetrics() override { | 316 const mojom::ViewportMetrics& GetViewportMetrics() override { |
316 return display_metrices_; | 317 return display_metrices_; |
317 } | 318 } |
318 void UpdateTextInputState(const ui::TextInputState& state) override {} | 319 void UpdateTextInputState(const ui::TextInputState& state) override {} |
319 void SetImeVisibility(bool visible) override {} | 320 void SetImeVisibility(bool visible) override {} |
320 bool IsFramePending() const override { return false; } | 321 bool IsFramePending() const override { return false; } |
321 | 322 |
322 private: | 323 private: |
323 mojom::ViewportMetrics display_metrices_; | 324 mojom::ViewportMetrics display_metrices_; |
324 | 325 |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 SingleChangeToDescription(*embed_connection->tracker()->changes())); | 861 SingleChangeToDescription(*embed_connection->tracker()->changes())); |
861 | 862 |
862 // Set the visibility from the child using the client assigned id. | 863 // Set the visibility from the child using the client assigned id. |
863 ASSERT_TRUE(window_tree_connection->SetWindowVisibility( | 864 ASSERT_TRUE(window_tree_connection->SetWindowVisibility( |
864 embed_window_id2_in_child, false)); | 865 embed_window_id2_in_child, false)); |
865 EXPECT_FALSE(embed_window->visible()); | 866 EXPECT_FALSE(embed_window->visible()); |
866 } | 867 } |
867 | 868 |
868 } // namespace ws | 869 } // namespace ws |
869 } // namespace mus | 870 } // namespace mus |
OLD | NEW |