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

Side by Side Diff: services/ui/public/cpp/tests/window_server_test_base.h

Issue 2346253004: Makes display roots be destroyed by client (Closed)
Patch Set: cleanup Created 4 years, 3 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 | « services/ui/demo/mus_demo.cc ('k') | services/ui/public/cpp/tests/window_server_test_base.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; 82 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override;
83 bool OnWmSetProperty( 83 bool OnWmSetProperty(
84 Window* window, 84 Window* window,
85 const std::string& name, 85 const std::string& name,
86 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 86 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
87 Window* OnWmCreateTopLevelWindow( 87 Window* OnWmCreateTopLevelWindow(
88 std::map<std::string, std::vector<uint8_t>>* properties) override; 88 std::map<std::string, std::vector<uint8_t>>* properties) override;
89 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, 89 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows,
90 bool not_responding) override; 90 bool not_responding) override;
91 void OnWmNewDisplay(Window* window, const display::Display& display) override; 91 void OnWmNewDisplay(Window* window, const display::Display& display) override;
92 void OnWmDisplayRemoved(Window* window) override;
92 void OnWmPerformMoveLoop(Window* window, 93 void OnWmPerformMoveLoop(Window* window,
93 mojom::MoveLoopSource source, 94 mojom::MoveLoopSource source,
94 const gfx::Point& cursor_location, 95 const gfx::Point& cursor_location,
95 const base::Callback<void(bool)>& on_done) override; 96 const base::Callback<void(bool)>& on_done) override;
96 void OnWmCancelMoveLoop(Window* window) override; 97 void OnWmCancelMoveLoop(Window* window) override;
97 mojom::EventResult OnAccelerator(uint32_t accelerator_id, 98 mojom::EventResult OnAccelerator(uint32_t accelerator_id,
98 const ui::Event& event) override; 99 const ui::Event& event) override;
99 100
100 // InterfaceFactory<WindowTreeClient>: 101 // InterfaceFactory<WindowTreeClient>:
101 void Create(const shell::Identity& remote_identity, 102 void Create(const shell::Identity& remote_identity,
(...skipping 19 matching lines...) Expand all
121 WindowManagerClient* window_manager_client_; 122 WindowManagerClient* window_manager_client_;
122 123
123 bool window_tree_client_lost_connection_ = false; 124 bool window_tree_client_lost_connection_ = false;
124 125
125 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); 126 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase);
126 }; 127 };
127 128
128 } // namespace ui 129 } // namespace ui
129 130
130 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ 131 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_
OLDNEW
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/public/cpp/tests/window_server_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698