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

Side by Side Diff: components/mus/ws/server_window_observer.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 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
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/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 COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_
7 7
8 #include "components/mus/public/interfaces/mus_constants.mojom.h" 8 #include "components/mus/public/interfaces/mus_constants.mojom.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const gfx::Insets& old_client_area, 49 const gfx::Insets& old_client_area,
50 const gfx::Insets& new_client_area) {} 50 const gfx::Insets& new_client_area) {}
51 51
52 virtual void OnWindowReordered(ServerWindow* window, 52 virtual void OnWindowReordered(ServerWindow* window,
53 ServerWindow* relative, 53 ServerWindow* relative,
54 mojom::OrderDirection direction) {} 54 mojom::OrderDirection direction) {}
55 55
56 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} 56 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {}
57 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} 57 virtual void OnWindowVisibilityChanged(ServerWindow* window) {}
58 58
59 virtual void OnWindowPredefinedCursorChanged(ServerWindow* window,
60 int32_t cursor_id) {}
61
59 virtual void OnWindowTextInputStateChanged(ServerWindow* window, 62 virtual void OnWindowTextInputStateChanged(ServerWindow* window,
60 const ui::TextInputState& state) {} 63 const ui::TextInputState& state) {}
61 64
62 virtual void OnWindowSharedPropertyChanged( 65 virtual void OnWindowSharedPropertyChanged(
63 ServerWindow* window, 66 ServerWindow* window,
64 const std::string& name, 67 const std::string& name,
65 const std::vector<uint8_t>* new_data) {} 68 const std::vector<uint8_t>* new_data) {}
66 69
67 // Called when a transient child is added to |window|. 70 // Called when a transient child is added to |window|.
68 virtual void OnTransientWindowAdded(ServerWindow* window, 71 virtual void OnTransientWindowAdded(ServerWindow* window,
69 ServerWindow* transient_child) {} 72 ServerWindow* transient_child) {}
70 73
71 // Called when a transient child is removed from |window|. 74 // Called when a transient child is removed from |window|.
72 virtual void OnTransientWindowRemoved(ServerWindow* window, 75 virtual void OnTransientWindowRemoved(ServerWindow* window,
73 ServerWindow* transient_child) {} 76 ServerWindow* transient_child) {}
74 77
75 protected: 78 protected:
76 virtual ~ServerWindowObserver() {} 79 virtual ~ServerWindowObserver() {}
77 }; 80 };
78 81
79 } // namespace ws 82 } // namespace ws
80 83
81 } // namespace mus 84 } // namespace mus
82 85
83 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ 86 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698