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

Side by Side Diff: ash/mus/window_manager.h

Issue 2548513002: Update bool WindowManager::OnWmSetBounds() to match with its desirable behavior. (Closed)
Patch Set: Remove if condition statetment in Window::SetBounds(const gfx::Rect& new_bounds). Created 4 years 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 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 ASH_MUS_WINDOW_MANAGER_H_ 5 #ifndef ASH_MUS_WINDOW_MANAGER_H_
6 #define ASH_MUS_WINDOW_MANAGER_H_ 6 #define ASH_MUS_WINDOW_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; 142 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override;
143 void OnEmbedRootDestroyed(aura::Window* root) override; 143 void OnEmbedRootDestroyed(aura::Window* root) override;
144 void OnLostConnection(aura::WindowTreeClient* client) override; 144 void OnLostConnection(aura::WindowTreeClient* client) override;
145 void OnPointerEventObserved(const ui::PointerEvent& event, 145 void OnPointerEventObserved(const ui::PointerEvent& event,
146 aura::Window* target) override; 146 aura::Window* target) override;
147 aura::client::CaptureClient* GetCaptureClient() override; 147 aura::client::CaptureClient* GetCaptureClient() override;
148 aura::PropertyConverter* GetPropertyConverter() override; 148 aura::PropertyConverter* GetPropertyConverter() override;
149 149
150 // WindowManagerDelegate: 150 // WindowManagerDelegate:
151 void SetWindowManagerClient(aura::WindowManagerClient* client) override; 151 void SetWindowManagerClient(aura::WindowManagerClient* client) override;
152 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) override; 152 void OnWmSetBounds(aura::Window* window, const gfx::Rect& bounds) override;
153 bool OnWmSetProperty( 153 bool OnWmSetProperty(
154 aura::Window* window, 154 aura::Window* window,
155 const std::string& name, 155 const std::string& name,
156 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 156 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
157 aura::Window* OnWmCreateTopLevelWindow( 157 aura::Window* OnWmCreateTopLevelWindow(
158 ui::mojom::WindowType window_type, 158 ui::mojom::WindowType window_type,
159 std::map<std::string, std::vector<uint8_t>>* properties) override; 159 std::map<std::string, std::vector<uint8_t>>* properties) override;
160 void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows, 160 void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows,
161 bool not_responding) override; 161 bool not_responding) override;
162 void OnWmWillCreateDisplay(const display::Display& display) override; 162 void OnWmWillCreateDisplay(const display::Display& display) override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 std::unique_ptr<ScreenPositionController> screen_position_controller_; 213 std::unique_ptr<ScreenPositionController> screen_position_controller_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(WindowManager); 215 DISALLOW_COPY_AND_ASSIGN(WindowManager);
216 }; 216 };
217 217
218 } // namespace mus 218 } // namespace mus
219 } // namespace ash 219 } // namespace ash
220 220
221 #endif // ASH_MUS_WINDOW_MANAGER_H_ 221 #endif // ASH_MUS_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/mus/window_manager.cc » ('j') | services/ui/public/cpp/window_manager_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698