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

Side by Side Diff: components/app_modal_dialogs/views/javascript_app_modal_dialog_views.h

Issue 735473002: Rename app_modal_dialogs dir to app_modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
6 #define COMPONENTS_APP_MODAL_DIALOGS_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "components/app_modal_dialogs/native_app_modal_dialog.h"
10 #include "ui/views/window/dialog_delegate.h"
11
12 class JavaScriptAppModalDialog;
13
14 namespace views {
15 class MessageBoxView;
16 }
17
18 class JavaScriptAppModalDialogViews : public NativeAppModalDialog,
19 public views::DialogDelegate {
20 public:
21 explicit JavaScriptAppModalDialogViews(JavaScriptAppModalDialog* parent);
22 ~JavaScriptAppModalDialogViews() override;
23
24 // Overridden from NativeAppModalDialog:
25 int GetAppModalDialogButtons() const override;
26 void ShowAppModalDialog() override;
27 void ActivateAppModalDialog() override;
28 void CloseAppModalDialog() override;
29 void AcceptAppModalDialog() override;
30 void CancelAppModalDialog() override;
31
32 // Overridden from views::DialogDelegate:
33 int GetDefaultDialogButton() const override;
34 int GetDialogButtons() const override;
35 base::string16 GetWindowTitle() const override;
36 void DeleteDelegate() override;
37 bool Cancel() override;
38 bool Accept() override;
39 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
40
41 // Overridden from views::WidgetDelegate:
42 ui::ModalType GetModalType() const override;
43 views::View* GetContentsView() override;
44 views::View* GetInitiallyFocusedView() override;
45 void OnClosed() override;
46 views::Widget* GetWidget() override;
47 const views::Widget* GetWidget() const override;
48
49 private:
50 // A pointer to the AppModalDialog that owns us.
51 scoped_ptr<JavaScriptAppModalDialog> parent_;
52
53 // The message box view whose commands we handle.
54 views::MessageBoxView* message_box_view_;
55
56 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews);
57 };
58
59 #endif // COMPONENTS_APP_MODAL_DIALOGS_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_ H_
OLDNEW
« no previous file with comments | « components/app_modal_dialogs/views/DEPS ('k') | components/app_modal_dialogs/views/javascript_app_modal_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698