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

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

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test Created 5 years, 3 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
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_VIEW_OBSERVER_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/mus/public/cpp/view.h" 10 #include "components/mus/public/cpp/view.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual void OnViewDestroying(View* view) {} 47 virtual void OnViewDestroying(View* view) {}
48 virtual void OnViewDestroyed(View* view) {} 48 virtual void OnViewDestroyed(View* view) {}
49 49
50 virtual void OnViewBoundsChanging(View* view, 50 virtual void OnViewBoundsChanging(View* view,
51 const mojo::Rect& old_bounds, 51 const mojo::Rect& old_bounds,
52 const mojo::Rect& new_bounds) {} 52 const mojo::Rect& new_bounds) {}
53 virtual void OnViewBoundsChanged(View* view, 53 virtual void OnViewBoundsChanged(View* view,
54 const mojo::Rect& old_bounds, 54 const mojo::Rect& old_bounds,
55 const mojo::Rect& new_bounds) {} 55 const mojo::Rect& new_bounds) {}
56 virtual void OnViewLostCapture(View* view) {}
56 57
57 virtual void OnViewViewportMetricsChanged( 58 virtual void OnViewViewportMetricsChanged(
58 View* view, 59 View* view,
59 const mojo::ViewportMetrics& old_metrics, 60 const mojo::ViewportMetrics& old_metrics,
60 const mojo::ViewportMetrics& new_metrics) {} 61 const mojo::ViewportMetrics& new_metrics) {}
61 62
62 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} 63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {}
63 64
64 virtual void OnViewInputEvent(View* view, const mojo::EventPtr& event) {} 65 virtual void OnViewInputEvent(View* view, const mojo::EventPtr& event) {}
65 66
(...skipping 27 matching lines...) Expand all
93 virtual void OnViewDrawnChanging(View* view) {} 94 virtual void OnViewDrawnChanging(View* view) {}
94 virtual void OnViewDrawnChanged(View* view) {} 95 virtual void OnViewDrawnChanged(View* view) {}
95 96
96 protected: 97 protected:
97 virtual ~ViewObserver() {} 98 virtual ~ViewObserver() {}
98 }; 99 };
99 100
100 } // namespace mus 101 } // namespace mus
101 102
102 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ 103 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698