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

Side by Side Diff: chrome/browser/ui/views/app_list/app_list_dialog_container.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
7 7
8 #include "ui/views/controls/button/button.h" 8 #include "ui/views/controls/button/button.h"
9 #include "ui/views/window/dialog_delegate.h" 9 #include "ui/views/window/dialog_delegate.h"
10 10
11 namespace views { 11 namespace views {
12 class LabelButton; 12 class LabelButton;
13 class Widget; 13 class Widget;
14 } 14 }
15 15
16 // The contents view for an App List Dialog, which covers the entire app list 16 // The contents view for an App List Dialog, which covers the entire app list
17 // and adds a close button. 17 // and adds a close button.
18 class AppListDialogContainer : public views::DialogDelegateView, 18 class AppListDialogContainer : public views::DialogDelegateView,
19 public views::ButtonListener { 19 public views::ButtonListener {
20 public: 20 public:
21 // Creates a new AppListDialogContainer. Takes ownership of |dialog_body|. 21 // Creates a new AppListDialogContainer. Takes ownership of |dialog_body|.
22 AppListDialogContainer(views::View* dialog_body, 22 AppListDialogContainer(views::View* dialog_body,
23 const base::Closure& close_callback); 23 const base::Closure& close_callback);
24 virtual ~AppListDialogContainer(); 24 virtual ~AppListDialogContainer();
25 25
26 // Overridden from views::View: 26 // Overridden from views::View:
27 virtual void Layout() OVERRIDE; 27 virtual void Layout() override;
28 28
29 // Overridden from views::WidgetDelegate: 29 // Overridden from views::WidgetDelegate:
30 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 30 virtual views::View* GetInitiallyFocusedView() override;
31 virtual views::View* GetContentsView() OVERRIDE; 31 virtual views::View* GetContentsView() override;
32 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; 32 virtual views::ClientView* CreateClientView(views::Widget* widget) override;
33 virtual views::NonClientFrameView* CreateNonClientFrameView( 33 virtual views::NonClientFrameView* CreateNonClientFrameView(
34 views::Widget* widget) OVERRIDE; 34 views::Widget* widget) override;
35 35
36 // Overridden from views::ButtonListener: 36 // Overridden from views::ButtonListener:
37 virtual void ButtonPressed(views::Button* sender, 37 virtual void ButtonPressed(views::Button* sender,
38 const ui::Event& event) OVERRIDE; 38 const ui::Event& event) override;
39 39
40 protected: 40 protected:
41 // Overridden from views::WidgetDelegate: 41 // Overridden from views::WidgetDelegate:
42 virtual ui::ModalType GetModalType() const OVERRIDE; 42 virtual ui::ModalType GetModalType() const override;
43 virtual void WindowClosing() OVERRIDE; 43 virtual void WindowClosing() override;
44 44
45 private: 45 private:
46 views::View* dialog_body_; // Owned by this class via the views hierarchy. 46 views::View* dialog_body_; // Owned by this class via the views hierarchy.
47 const base::Closure close_callback_; 47 const base::Closure close_callback_;
48 48
49 views::LabelButton* close_button_; 49 views::LabelButton* close_button_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(AppListDialogContainer); 51 DISALLOW_COPY_AND_ASSIGN(AppListDialogContainer);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_ 54 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698