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

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

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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 | « ash/mus/window_manager.cc ('k') | services/ui/demo/mus_demo.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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool OnWmSetProperty( 54 bool OnWmSetProperty(
55 Window* window, 55 Window* window,
56 const std::string& name, 56 const std::string& name,
57 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 57 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
58 Window* OnWmCreateTopLevelWindow( 58 Window* OnWmCreateTopLevelWindow(
59 std::map<std::string, std::vector<uint8_t>>* properties) override; 59 std::map<std::string, std::vector<uint8_t>>* properties) override;
60 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, 60 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows,
61 bool janky) override; 61 bool janky) override;
62 void OnWmNewDisplay(Window* window, const display::Display& display) override; 62 void OnWmNewDisplay(Window* window, const display::Display& display) override;
63 void OnWmDisplayRemoved(ui::Window* window) override; 63 void OnWmDisplayRemoved(ui::Window* window) override;
64 void OnWmDisplayModified(const display::Display& display) override;
64 void OnWmPerformMoveLoop(Window* window, 65 void OnWmPerformMoveLoop(Window* window,
65 mojom::MoveLoopSource source, 66 mojom::MoveLoopSource source,
66 const gfx::Point& cursor_location, 67 const gfx::Point& cursor_location,
67 const base::Callback<void(bool)>& on_done) override; 68 const base::Callback<void(bool)>& on_done) override;
68 void OnWmCancelMoveLoop(Window* window) override; 69 void OnWmCancelMoveLoop(Window* window) override;
69 70
70 // Allocate a bitmap the same size as the window to draw into. 71 // Allocate a bitmap the same size as the window to draw into.
71 void AllocBitmap(); 72 void AllocBitmap();
72 73
73 // Draws one frame, incrementing the rotation angle. 74 // Draws one frame, incrementing the rotation angle.
(...skipping 15 matching lines...) Expand all
89 // Current rotation angle for drawing. 90 // Current rotation angle for drawing.
90 double angle_ = 0.0; 91 double angle_ = 0.0;
91 92
92 DISALLOW_COPY_AND_ASSIGN(MusDemo); 93 DISALLOW_COPY_AND_ASSIGN(MusDemo);
93 }; 94 };
94 95
95 } // namespace demo 96 } // namespace demo
96 } // namespace ui 97 } // namespace ui
97 98
98 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 99 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « ash/mus/window_manager.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698