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

Side by Side Diff: components/mus/public/cpp/window_observer.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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 | « components/mus/public/cpp/window.h ('k') | components/mus/public/cpp/window_surface.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 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 22 matching lines...) Expand all
33 Window* old_parent; 33 Window* old_parent;
34 Window* new_parent; 34 Window* new_parent;
35 Window* receiver; 35 Window* receiver;
36 }; 36 };
37 37
38 virtual void OnTreeChanging(const TreeChangeParams& params) {} 38 virtual void OnTreeChanging(const TreeChangeParams& params) {}
39 virtual void OnTreeChanged(const TreeChangeParams& params) {} 39 virtual void OnTreeChanged(const TreeChangeParams& params) {}
40 40
41 virtual void OnWindowReordering(Window* window, 41 virtual void OnWindowReordering(Window* window,
42 Window* relative_window, 42 Window* relative_window,
43 mojo::OrderDirection direction) {} 43 mojom::OrderDirection direction) {}
44 virtual void OnWindowReordered(Window* window, 44 virtual void OnWindowReordered(Window* window,
45 Window* relative_window, 45 Window* relative_window,
46 mojo::OrderDirection direction) {} 46 mojom::OrderDirection direction) {}
47 47
48 virtual void OnWindowDestroying(Window* window) {} 48 virtual void OnWindowDestroying(Window* window) {}
49 virtual void OnWindowDestroyed(Window* window) {} 49 virtual void OnWindowDestroyed(Window* window) {}
50 50
51 virtual void OnWindowBoundsChanging(Window* window, 51 virtual void OnWindowBoundsChanging(Window* window,
52 const mojo::Rect& old_bounds, 52 const mojo::Rect& old_bounds,
53 const mojo::Rect& new_bounds) {} 53 const mojo::Rect& new_bounds) {}
54 virtual void OnWindowBoundsChanged(Window* window, 54 virtual void OnWindowBoundsChanged(Window* window,
55 const mojo::Rect& old_bounds, 55 const mojo::Rect& old_bounds,
56 const mojo::Rect& new_bounds) {} 56 const mojo::Rect& new_bounds) {}
57 virtual void OnWindowClientAreaChanged(Window* window, 57 virtual void OnWindowClientAreaChanged(Window* window,
58 const mojo::Rect& old_client_area) {} 58 const mojo::Rect& old_client_area) {}
59 59
60 virtual void OnWindowViewportMetricsChanged( 60 virtual void OnWindowViewportMetricsChanged(
61 Window* window, 61 Window* window,
62 const mojo::ViewportMetrics& old_metrics, 62 const mojom::ViewportMetrics& old_metrics,
63 const mojo::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 OnWindowInputEvent(Window* window, const mojo::EventPtr& event) { 67 virtual void OnWindowInputEvent(Window* window, const mojo::EventPtr& event) {
68 } 68 }
69 69
70 virtual void OnWindowVisibilityChanging(Window* window) {} 70 virtual void OnWindowVisibilityChanging(Window* window) {}
71 virtual void OnWindowVisibilityChanged(Window* window) {} 71 virtual void OnWindowVisibilityChanged(Window* window) {}
72 72
73 // Invoked when this Window's shared properties have changed. This can either 73 // Invoked when this Window's shared properties have changed. This can either
(...skipping 23 matching lines...) Expand all
97 virtual void OnWindowDrawnChanging(Window* window) {} 97 virtual void OnWindowDrawnChanging(Window* window) {}
98 virtual void OnWindowDrawnChanged(Window* window) {} 98 virtual void OnWindowDrawnChanged(Window* window) {}
99 99
100 protected: 100 protected:
101 virtual ~WindowObserver() {} 101 virtual ~WindowObserver() {}
102 }; 102 };
103 103
104 } // namespace mus 104 } // namespace mus
105 105
106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ 106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/public/cpp/window_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698