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

Side by Side Diff: chrome/browser/ui/views/javascript_app_modal_dialog_views.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 (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 CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" 9 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h"
10 #include "ui/views/window/dialog_delegate.h" 10 #include "ui/views/window/dialog_delegate.h"
11 11
12 class JavaScriptAppModalDialog; 12 class JavaScriptAppModalDialog;
13 13
14 #if defined(USE_X11) && !defined(OS_CHROMEOS) 14 #if defined(USE_X11) && !defined(OS_CHROMEOS)
15 class JavascriptAppModalEventBlockerX11; 15 class JavascriptAppModalEventBlockerX11;
16 #endif 16 #endif
17 17
18 namespace views { 18 namespace views {
19 class MessageBoxView; 19 class MessageBoxView;
20 } 20 }
21 21
22 class JavaScriptAppModalDialogViews : public NativeAppModalDialog, 22 class JavaScriptAppModalDialogViews : public NativeAppModalDialog,
23 public views::DialogDelegate { 23 public views::DialogDelegate {
24 public: 24 public:
25 explicit JavaScriptAppModalDialogViews(JavaScriptAppModalDialog* parent); 25 explicit JavaScriptAppModalDialogViews(JavaScriptAppModalDialog* parent);
26 virtual ~JavaScriptAppModalDialogViews(); 26 virtual ~JavaScriptAppModalDialogViews();
27 27
28 // Overridden from NativeAppModalDialog: 28 // Overridden from NativeAppModalDialog:
29 virtual int GetAppModalDialogButtons() const OVERRIDE; 29 virtual int GetAppModalDialogButtons() const override;
30 virtual void ShowAppModalDialog() OVERRIDE; 30 virtual void ShowAppModalDialog() override;
31 virtual void ActivateAppModalDialog() OVERRIDE; 31 virtual void ActivateAppModalDialog() override;
32 virtual void CloseAppModalDialog() OVERRIDE; 32 virtual void CloseAppModalDialog() override;
33 virtual void AcceptAppModalDialog() OVERRIDE; 33 virtual void AcceptAppModalDialog() override;
34 virtual void CancelAppModalDialog() OVERRIDE; 34 virtual void CancelAppModalDialog() override;
35 35
36 // Overridden from views::DialogDelegate: 36 // Overridden from views::DialogDelegate:
37 virtual int GetDefaultDialogButton() const OVERRIDE; 37 virtual int GetDefaultDialogButton() const override;
38 virtual int GetDialogButtons() const OVERRIDE; 38 virtual int GetDialogButtons() const override;
39 virtual base::string16 GetWindowTitle() const OVERRIDE; 39 virtual base::string16 GetWindowTitle() const override;
40 virtual void WindowClosing() OVERRIDE; 40 virtual void WindowClosing() override;
41 virtual void DeleteDelegate() OVERRIDE; 41 virtual void DeleteDelegate() override;
42 virtual bool Cancel() OVERRIDE; 42 virtual bool Cancel() override;
43 virtual bool Accept() OVERRIDE; 43 virtual bool Accept() override;
44 virtual base::string16 GetDialogButtonLabel( 44 virtual base::string16 GetDialogButtonLabel(
45 ui::DialogButton button) const OVERRIDE; 45 ui::DialogButton button) const override;
46 46
47 // Overridden from views::WidgetDelegate: 47 // Overridden from views::WidgetDelegate:
48 virtual ui::ModalType GetModalType() const OVERRIDE; 48 virtual ui::ModalType GetModalType() const override;
49 virtual views::View* GetContentsView() OVERRIDE; 49 virtual views::View* GetContentsView() override;
50 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 50 virtual views::View* GetInitiallyFocusedView() override;
51 virtual void OnClosed() OVERRIDE; 51 virtual void OnClosed() override;
52 virtual views::Widget* GetWidget() OVERRIDE; 52 virtual views::Widget* GetWidget() override;
53 virtual const views::Widget* GetWidget() const OVERRIDE; 53 virtual const views::Widget* GetWidget() const override;
54 54
55 private: 55 private:
56 // A pointer to the AppModalDialog that owns us. 56 // A pointer to the AppModalDialog that owns us.
57 scoped_ptr<JavaScriptAppModalDialog> parent_; 57 scoped_ptr<JavaScriptAppModalDialog> parent_;
58 58
59 // The message box view whose commands we handle. 59 // The message box view whose commands we handle.
60 views::MessageBoxView* message_box_view_; 60 views::MessageBoxView* message_box_view_;
61 61
62 #if defined(USE_X11) && !defined(OS_CHROMEOS) 62 #if defined(USE_X11) && !defined(OS_CHROMEOS)
63 // Blocks events to other browser windows while the dialog is open. 63 // Blocks events to other browser windows while the dialog is open.
64 scoped_ptr<JavascriptAppModalEventBlockerX11> event_blocker_x11_; 64 scoped_ptr<JavascriptAppModalEventBlockerX11> event_blocker_x11_;
65 #endif 65 #endif
66 66
67 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews); 67 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ 70 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.h ('k') | chrome/browser/ui/views/javascript_app_modal_event_blocker_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698