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

Side by Side Diff: chrome/browser/ui/views/javascript_app_modal_dialog_views.h

Issue 18179004: Dismiss action in tab modal dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test for Mac Created 7 years, 4 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"
(...skipping 25 matching lines...) Expand all
36 virtual void WindowClosing() OVERRIDE; 36 virtual void WindowClosing() OVERRIDE;
37 virtual void DeleteDelegate() OVERRIDE; 37 virtual void DeleteDelegate() OVERRIDE;
38 virtual bool Cancel() OVERRIDE; 38 virtual bool Cancel() OVERRIDE;
39 virtual bool Accept() OVERRIDE; 39 virtual bool Accept() OVERRIDE;
40 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 40 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
41 41
42 // Overridden from views::WidgetDelegate: 42 // Overridden from views::WidgetDelegate:
43 virtual ui::ModalType GetModalType() const OVERRIDE; 43 virtual ui::ModalType GetModalType() const OVERRIDE;
44 virtual views::View* GetContentsView() OVERRIDE; 44 virtual views::View* GetContentsView() OVERRIDE;
45 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 45 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
46 virtual void OnClose() OVERRIDE; 46 virtual void OnClosed() OVERRIDE;
47 virtual views::Widget* GetWidget() OVERRIDE; 47 virtual views::Widget* GetWidget() OVERRIDE;
48 virtual const views::Widget* GetWidget() const OVERRIDE; 48 virtual const views::Widget* GetWidget() const OVERRIDE;
49 49
50 private: 50 private:
51 // A pointer to the AppModalDialog that owns us. 51 // A pointer to the AppModalDialog that owns us.
52 scoped_ptr<JavaScriptAppModalDialog> parent_; 52 scoped_ptr<JavaScriptAppModalDialog> parent_;
53 53
54 // The message box view whose commands we handle. 54 // The message box view whose commands we handle.
55 views::MessageBoxView* message_box_view_; 55 views::MessageBoxView* message_box_view_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews); 57 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews);
58 }; 58 };
59 59
60 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ 60 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_dialog.cc ('k') | chrome/browser/ui/views/javascript_app_modal_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698