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

Side by Side Diff: services/ui/ws/server_window_observer.h

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux Created 3 years, 7 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/ui/ws/server_window.cc ('k') | services/ui/ws/test_change_tracker.h » ('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 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 SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnWindowReordered(ServerWindow* window, 59 virtual void OnWindowReordered(ServerWindow* window,
60 ServerWindow* relative, 60 ServerWindow* relative,
61 mojom::OrderDirection direction) {} 61 mojom::OrderDirection direction) {}
62 62
63 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} 63 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {}
64 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} 64 virtual void OnWindowVisibilityChanged(ServerWindow* window) {}
65 virtual void OnWindowOpacityChanged(ServerWindow* window, 65 virtual void OnWindowOpacityChanged(ServerWindow* window,
66 float old_opacity, 66 float old_opacity,
67 float new_opacity) {} 67 float new_opacity) {}
68 68
69 virtual void OnWindowPredefinedCursorChanged(ServerWindow* window, 69 virtual void OnWindowCursorChanged(ServerWindow* window,
70 mojom::CursorType cursor_id) {} 70 const ui::CursorData& cursor_data) {}
71 virtual void OnWindowNonClientCursorChanged(ServerWindow* window, 71 virtual void OnWindowNonClientCursorChanged(
72 mojom::CursorType cursor_id) {} 72 ServerWindow* window,
73 const ui::CursorData& cursor_data) {}
73 74
74 virtual void OnWindowTextInputStateChanged(ServerWindow* window, 75 virtual void OnWindowTextInputStateChanged(ServerWindow* window,
75 const ui::TextInputState& state) {} 76 const ui::TextInputState& state) {}
76 77
77 virtual void OnWindowSharedPropertyChanged( 78 virtual void OnWindowSharedPropertyChanged(
78 ServerWindow* window, 79 ServerWindow* window,
79 const std::string& name, 80 const std::string& name,
80 const std::vector<uint8_t>* new_data) {} 81 const std::vector<uint8_t>* new_data) {}
81 82
82 // Called when the window is no longer an embed root. 83 // Called when the window is no longer an embed root.
83 virtual void OnWindowEmbeddedAppDisconnected(ServerWindow* window) {} 84 virtual void OnWindowEmbeddedAppDisconnected(ServerWindow* window) {}
84 85
85 // Called when a transient child is added to |window|. 86 // Called when a transient child is added to |window|.
86 virtual void OnTransientWindowAdded(ServerWindow* window, 87 virtual void OnTransientWindowAdded(ServerWindow* window,
87 ServerWindow* transient_child) {} 88 ServerWindow* transient_child) {}
88 89
89 // Called when a transient child is removed from |window|. 90 // Called when a transient child is removed from |window|.
90 virtual void OnTransientWindowRemoved(ServerWindow* window, 91 virtual void OnTransientWindowRemoved(ServerWindow* window,
91 ServerWindow* transient_child) {} 92 ServerWindow* transient_child) {}
92 93
93 protected: 94 protected:
94 virtual ~ServerWindowObserver() {} 95 virtual ~ServerWindowObserver() {}
95 }; 96 };
96 97
97 } // namespace ws 98 } // namespace ws
98 99
99 } // namespace ui 100 } // namespace ui
100 101
101 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ 102 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window.cc ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698