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

Side by Side Diff: ui/views/widget/widget_observer.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
6 #define UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 29 matching lines...) Expand all
40 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) {} 40 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) {}
41 41
42 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {} 42 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {}
43 43
44 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {} 44 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {}
45 45
46 virtual void OnWidgetBoundsChanged(Widget* widget, 46 virtual void OnWidgetBoundsChanged(Widget* widget,
47 const gfx::Rect& new_bounds) {} 47 const gfx::Rect& new_bounds) {}
48 48
49 protected: 49 protected:
50 WidgetObserver() = default;
50 virtual ~WidgetObserver() {} 51 virtual ~WidgetObserver() {}
51 }; 52 };
52 53
53 } // namespace views 54 } // namespace views
54 55
55 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 56 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698