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

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

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/navigation/view_impl.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 26 matching lines...) Expand all
37 37
38 private: 38 private:
39 // shell::Service: 39 // shell::Service:
40 void OnStart(const shell::Identity& identity) override; 40 void OnStart(const shell::Identity& identity) override;
41 bool OnConnect(const shell::Identity& remote_identity, 41 bool OnConnect(const shell::Identity& remote_identity,
42 shell::InterfaceRegistry* registry) override; 42 shell::InterfaceRegistry* registry) override;
43 43
44 // WindowTreeClientDelegate: 44 // WindowTreeClientDelegate:
45 void OnEmbed(Window* root) override; 45 void OnEmbed(Window* root) override;
46 void OnDidDestroyClient(WindowTreeClient* client) override; 46 void OnDidDestroyClient(WindowTreeClient* client) override;
47 void OnEventObserved(const Event& event, Window* target) override; 47 void OnPointerEventObserved(const PointerEvent& event,
48 Window* target) override;
48 49
49 // WindowManagerDelegate: 50 // WindowManagerDelegate:
50 void SetWindowManagerClient(WindowManagerClient* client) override; 51 void SetWindowManagerClient(WindowManagerClient* client) override;
51 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; 52 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override;
52 bool OnWmSetProperty( 53 bool OnWmSetProperty(
53 Window* window, 54 Window* window,
54 const std::string& name, 55 const std::string& name,
55 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 56 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
56 Window* OnWmCreateTopLevelWindow( 57 Window* OnWmCreateTopLevelWindow(
57 std::map<std::string, std::vector<uint8_t>>* properties) override; 58 std::map<std::string, std::vector<uint8_t>>* properties) override;
(...skipping 28 matching lines...) Expand all
86 // Current rotation angle for drawing. 87 // Current rotation angle for drawing.
87 double angle_ = 0.0; 88 double angle_ = 0.0;
88 89
89 DISALLOW_COPY_AND_ASSIGN(MusDemo); 90 DISALLOW_COPY_AND_ASSIGN(MusDemo);
90 }; 91 };
91 92
92 } // namespace demo 93 } // namespace demo
93 } // namespace ui 94 } // namespace ui
94 95
95 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 96 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « services/navigation/view_impl.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698