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

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

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 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 <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ui::Window* window, 53 ui::Window* window,
54 const std::string& name, 54 const std::string& name,
55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 55 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
56 ui::Window* OnWmCreateTopLevelWindow( 56 ui::Window* OnWmCreateTopLevelWindow(
57 std::map<std::string, std::vector<uint8_t>>* properties) override; 57 std::map<std::string, std::vector<uint8_t>>* properties) override;
58 void OnWmClientJankinessChanged(const std::set<ui::Window*>& client_windows, 58 void OnWmClientJankinessChanged(const std::set<ui::Window*>& client_windows,
59 bool janky) override; 59 bool janky) override;
60 void OnWmNewDisplay(ui::Window* window, 60 void OnWmNewDisplay(ui::Window* window,
61 const display::Display& display) override; 61 const display::Display& display) override;
62 void OnAccelerator(uint32_t id, const ui::Event& event) override; 62 void OnAccelerator(uint32_t id, const ui::Event& event) override;
63 void OnWmPerformMoveLoop(ui::Window* window,
64 ui::mojom::MoveLoopSource source,
65 const gfx::Point& cursor_location,
66 const base::Callback<void(bool)>& on_done) override;
67 void OnWmCancelMoveLoop(ui::Window* window) override;
63 68
64 // Allocate a bitmap the same size as the window to draw into. 69 // Allocate a bitmap the same size as the window to draw into.
65 void AllocBitmap(); 70 void AllocBitmap();
66 71
67 // Draws one frame, incrementing the rotation angle. 72 // Draws one frame, incrementing the rotation angle.
68 void DrawFrame(); 73 void DrawFrame();
69 74
70 shell::Connector* connector_ = nullptr; 75 shell::Connector* connector_ = nullptr;
71 76
72 ui::Window* window_ = nullptr; 77 ui::Window* window_ = nullptr;
(...skipping 10 matching lines...) Expand all
83 88
84 // Current rotation angle for drawing. 89 // Current rotation angle for drawing.
85 double angle_ = 0.0; 90 double angle_ = 0.0;
86 91
87 DISALLOW_COPY_AND_ASSIGN(MusDemo); 92 DISALLOW_COPY_AND_ASSIGN(MusDemo);
88 }; 93 };
89 94
90 } // namespace ui_demo 95 } // namespace ui_demo
91 96
92 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 97 #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