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

Side by Side Diff: components/mus/ws/window_tree_unittest.cc

Issue 1615023004: Start of display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash and add back getting constants Created 4 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
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698