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

Side by Side Diff: services/ui/demo/mus_demo.h

Issue 2548513002: Update bool WindowManager::OnWmSetBounds() to match with its desirable behavior. (Closed)
Patch Set: change bool to void. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DEMO_MUS_DEMO_H_ 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_
6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ 6 #define SERVICES_UI_DEMO_MUS_DEMO_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // WindowTreeClientDelegate: 45 // WindowTreeClientDelegate:
46 void OnEmbed(Window* root) override; 46 void OnEmbed(Window* root) override;
47 void OnEmbedRootDestroyed(Window* root) override; 47 void OnEmbedRootDestroyed(Window* root) override;
48 void OnLostConnection(WindowTreeClient* client) override; 48 void OnLostConnection(WindowTreeClient* client) override;
49 void OnPointerEventObserved(const PointerEvent& event, 49 void OnPointerEventObserved(const PointerEvent& event,
50 Window* target) override; 50 Window* target) override;
51 51
52 // WindowManagerDelegate: 52 // WindowManagerDelegate:
53 void SetWindowManagerClient(WindowManagerClient* client) override; 53 void SetWindowManagerClient(WindowManagerClient* client) override;
54 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; 54 void OnWmSetBounds(Window* window, gfx::Rect* bounds) override;
55 bool OnWmSetProperty( 55 bool OnWmSetProperty(
56 Window* window, 56 Window* window,
57 const std::string& name, 57 const std::string& name,
58 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 58 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
59 Window* OnWmCreateTopLevelWindow( 59 Window* OnWmCreateTopLevelWindow(
60 std::map<std::string, std::vector<uint8_t>>* properties) override; 60 std::map<std::string, std::vector<uint8_t>>* properties) override;
61 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, 61 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows,
62 bool janky) override; 62 bool janky) override;
63 void OnWmNewDisplay(Window* window, const display::Display& display) override; 63 void OnWmNewDisplay(Window* window, const display::Display& display) override;
64 void OnWmDisplayRemoved(ui::Window* window) override; 64 void OnWmDisplayRemoved(ui::Window* window) override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Last time a frame was drawn. 97 // Last time a frame was drawn.
98 base::TimeTicks last_draw_frame_time_; 98 base::TimeTicks last_draw_frame_time_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(MusDemo); 100 DISALLOW_COPY_AND_ASSIGN(MusDemo);
101 }; 101 };
102 102
103 } // namespace demo 103 } // namespace demo
104 } // namespace ui 104 } // namespace ui
105 105
106 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 106 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698