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

Side by Side Diff: ui/views/window/native_frame_view.h

Issue 661033006: 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
« no previous file with comments | « ui/views/window/dialog_delegate_unittest.cc ('k') | ui/views/window/non_client_view.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WINDOW_NATIVE_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
7 7
8 #include "ui/views/window/non_client_view.h" 8 #include "ui/views/window/non_client_view.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 class Widget; 12 class Widget;
13 13
14 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView { 14 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView {
15 public: 15 public:
16 static const char kViewClassName[]; 16 static const char kViewClassName[];
17 17
18 explicit NativeFrameView(Widget* frame); 18 explicit NativeFrameView(Widget* frame);
19 virtual ~NativeFrameView(); 19 ~NativeFrameView() override;
20 20
21 // NonClientFrameView overrides: 21 // NonClientFrameView overrides:
22 virtual gfx::Rect GetBoundsForClientView() const override; 22 gfx::Rect GetBoundsForClientView() const override;
23 virtual gfx::Rect GetWindowBoundsForClientBounds( 23 gfx::Rect GetWindowBoundsForClientBounds(
24 const gfx::Rect& client_bounds) const override; 24 const gfx::Rect& client_bounds) const override;
25 virtual int NonClientHitTest(const gfx::Point& point) override; 25 int NonClientHitTest(const gfx::Point& point) override;
26 virtual void GetWindowMask(const gfx::Size& size, 26 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
27 gfx::Path* window_mask) override; 27 void ResetWindowControls() override;
28 virtual void ResetWindowControls() override; 28 void UpdateWindowIcon() override;
29 virtual void UpdateWindowIcon() override; 29 void UpdateWindowTitle() override;
30 virtual void UpdateWindowTitle() override; 30 void SizeConstraintsChanged() override;
31 virtual void SizeConstraintsChanged() override;
32 31
33 // View overrides: 32 // View overrides:
34 virtual gfx::Size GetPreferredSize() const override; 33 gfx::Size GetPreferredSize() const override;
35 virtual gfx::Size GetMinimumSize() const override; 34 gfx::Size GetMinimumSize() const override;
36 virtual gfx::Size GetMaximumSize() const override; 35 gfx::Size GetMaximumSize() const override;
37 virtual const char* GetClassName() const override; 36 const char* GetClassName() const override;
38 37
39 private: 38 private:
40 // Our containing frame. 39 // Our containing frame.
41 Widget* frame_; 40 Widget* frame_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); 42 DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
44 }; 43 };
45 44
46 } // namespace views 45 } // namespace views
47 46
48 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 47 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/window/dialog_delegate_unittest.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698