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

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

Issue 686493002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 26 matching lines...) Expand all
37 // Many of the methods here are pass-thrus for Widget, and as such there is no 37 // Many of the methods here are pass-thrus for Widget, and as such there is no
38 // documentation for them here. In that case, see methods of the same name in 38 // documentation for them here. In that case, see methods of the same name in
39 // widget.h. 39 // widget.h.
40 // 40 //
41 // IMPORTANT: This type is intended for use only by the views system and for 41 // IMPORTANT: This type is intended for use only by the views system and for
42 // NativeWidget implementations. This file should not be included 42 // NativeWidget implementations. This file should not be included
43 // in code that does not fall into one of these use cases. 43 // in code that does not fall into one of these use cases.
44 // 44 //
45 class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget { 45 class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget {
46 public: 46 public:
47 virtual ~NativeWidgetPrivate() {} 47 ~NativeWidgetPrivate() override {}
48 48
49 // Creates an appropriate default NativeWidgetPrivate implementation for the 49 // Creates an appropriate default NativeWidgetPrivate implementation for the
50 // current OS/circumstance. 50 // current OS/circumstance.
51 static NativeWidgetPrivate* CreateNativeWidget( 51 static NativeWidgetPrivate* CreateNativeWidget(
52 internal::NativeWidgetDelegate* delegate); 52 internal::NativeWidgetDelegate* delegate);
53 53
54 static NativeWidgetPrivate* GetNativeWidgetForNativeView( 54 static NativeWidgetPrivate* GetNativeWidgetForNativeView(
55 gfx::NativeView native_view); 55 gfx::NativeView native_view);
56 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow( 56 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow(
57 gfx::NativeWindow native_window); 57 gfx::NativeWindow native_window);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; 224 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0;
225 virtual ui::NativeTheme* GetNativeTheme() const = 0; 225 virtual ui::NativeTheme* GetNativeTheme() const = 0;
226 virtual void OnRootViewLayout() = 0; 226 virtual void OnRootViewLayout() = 0;
227 virtual bool IsTranslucentWindowOpacitySupported() const = 0; 227 virtual bool IsTranslucentWindowOpacitySupported() const = 0;
228 virtual void OnSizeConstraintsChanged() = 0; 228 virtual void OnSizeConstraintsChanged() = 0;
229 229
230 // Repost an unhandled event to the native widget for default OS processing. 230 // Repost an unhandled event to the native widget for default OS processing.
231 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; 231 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0;
232 232
233 // Overridden from NativeWidget: 233 // Overridden from NativeWidget:
234 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; 234 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override;
235 }; 235 };
236 236
237 } // namespace internal 237 } // namespace internal
238 } // namespace views 238 } // namespace views
239 239
240 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 240 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/widget/native_widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698