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

Side by Side Diff: components/view_manager/view_manager_service_unittest.cc

Issue 1164553004: Revert of Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/view_manager/client_connection.h" 9 #include "components/view_manager/client_connection.h"
10 #include "components/view_manager/connection_manager.h" 10 #include "components/view_manager/connection_manager.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // ----------------------------------------------------------------------------- 177 // -----------------------------------------------------------------------------
178 178
179 // Empty implementation of DisplayManager. 179 // Empty implementation of DisplayManager.
180 class TestDisplayManager : public DisplayManager { 180 class TestDisplayManager : public DisplayManager {
181 public: 181 public:
182 TestDisplayManager() {} 182 TestDisplayManager() {}
183 ~TestDisplayManager() override {} 183 ~TestDisplayManager() override {}
184 184
185 // DisplayManager: 185 // DisplayManager:
186 void Init(ConnectionManager* connection_manager, 186 void Init(ConnectionManager* connection_manager,
187 EventDispatcher* event_dispatcher) override {} 187 mojo::NativeViewportEventDispatcherPtr event_dispatcher) override {}
188 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override { 188 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override {
189 } 189 }
190 void SetViewportSize(const gfx::Size& size) override {} 190 void SetViewportSize(const gfx::Size& size) override {}
191 const mojo::ViewportMetrics& GetViewportMetrics() override { 191 const mojo::ViewportMetrics& GetViewportMetrics() override {
192 return display_metrices_; 192 return display_metrices_;
193 } 193 }
194 194
195 private: 195 private:
196 mojo::ViewportMetrics display_metrices_; 196 mojo::ViewportMetrics display_metrices_;
197 197
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 EXPECT_EQ(connection_manager()->root(), 549 EXPECT_EQ(connection_manager()->root(),
550 connection_manager()->GetFocusedView()); 550 connection_manager()->GetFocusedView());
551 ASSERT_EQ(wm_client()->tracker()->changes()->size(), 1u); 551 ASSERT_EQ(wm_client()->tracker()->changes()->size(), 1u);
552 EXPECT_EQ("InputEvent view=0,1 event_action=4", 552 EXPECT_EQ("InputEvent view=0,1 event_action=4",
553 ChangesToDescription1(*wm_client()->tracker()->changes())[0]); 553 ChangesToDescription1(*wm_client()->tracker()->changes())[0]);
554 EXPECT_TRUE(connection1_client->tracker()->changes()->empty()); 554 EXPECT_TRUE(connection1_client->tracker()->changes()->empty());
555 ; 555 ;
556 } 556 }
557 557
558 } // namespace view_manager 558 } // namespace view_manager
OLDNEW
« no previous file with comments | « components/view_manager/view_manager_app.cc ('k') | mojo/runner/android/native_viewport_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698