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

Side by Side Diff: components/mus/public/cpp/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/public/cpp/window.h ('k') | components/mus/public/interfaces/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_CPP_WINDOW_OBSERVER_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void OnWindowClientAreaChanged(Window* window, 57 virtual void OnWindowClientAreaChanged(Window* window,
58 const gfx::Insets& old_client_area) {} 58 const gfx::Insets& old_client_area) {}
59 59
60 virtual void OnWindowViewportMetricsChanged( 60 virtual void OnWindowViewportMetricsChanged(
61 Window* window, 61 Window* window,
62 const mojom::ViewportMetrics& old_metrics, 62 const mojom::ViewportMetrics& old_metrics,
63 const mojom::ViewportMetrics& new_metrics) {} 63 const mojom::ViewportMetrics& new_metrics) {}
64 64
65 virtual void OnWindowFocusChanged(Window* gained_focus, Window* lost_focus) {} 65 virtual void OnWindowFocusChanged(Window* gained_focus, Window* lost_focus) {}
66 66
67 virtual void OnWindowPredefinedCursorChanged(Window* window,
68 mojom::Cursor cursor) {}
69
67 virtual void OnWindowInputEvent(Window* window, 70 virtual void OnWindowInputEvent(Window* window,
68 const mojom::EventPtr& event) {} 71 const mojom::EventPtr& event) {}
69 72
70 virtual void OnWindowVisibilityChanging(Window* window) {} 73 virtual void OnWindowVisibilityChanging(Window* window) {}
71 virtual void OnWindowVisibilityChanged(Window* window) {} 74 virtual void OnWindowVisibilityChanged(Window* window) {}
72 75
73 // Invoked when this Window's shared properties have changed. This can either 76 // Invoked when this Window's shared properties have changed. This can either
74 // be caused by SetSharedProperty() being called locally, or by us receiving 77 // be caused by SetSharedProperty() being called locally, or by us receiving
75 // a mojo message that this property has changed. If this property has been 78 // a mojo message that this property has changed. If this property has been
76 // added, |old_data| is null. If this property was removed, |new_data| is 79 // added, |old_data| is null. If this property was removed, |new_data| is
(...skipping 20 matching lines...) Expand all
97 virtual void OnWindowDrawnChanging(Window* window) {} 100 virtual void OnWindowDrawnChanging(Window* window) {}
98 virtual void OnWindowDrawnChanged(Window* window) {} 101 virtual void OnWindowDrawnChanged(Window* window) {}
99 102
100 protected: 103 protected:
101 virtual ~WindowObserver() {} 104 virtual ~WindowObserver() {}
102 }; 105 };
103 106
104 } // namespace mus 107 } // namespace mus
105 108
106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ 109 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698