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

Side by Side Diff: chrome/browser/ui/views/tab_modal_confirm_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_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" 10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h"
(...skipping 21 matching lines...) Expand all
32 public views::LinkListener { 32 public views::LinkListener {
33 public: 33 public:
34 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, 34 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate,
35 content::WebContents* web_contents); 35 content::WebContents* web_contents);
36 36
37 // views::DialogDelegate: 37 // views::DialogDelegate:
38 virtual string16 GetWindowTitle() const OVERRIDE; 38 virtual string16 GetWindowTitle() const OVERRIDE;
39 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 39 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
40 virtual bool Cancel() OVERRIDE; 40 virtual bool Cancel() OVERRIDE;
41 virtual bool Accept() OVERRIDE; 41 virtual bool Accept() OVERRIDE;
42 virtual bool Close() OVERRIDE;
42 43
43 // views::WidgetDelegate: 44 // views::WidgetDelegate:
44 virtual views::View* GetContentsView() OVERRIDE; 45 virtual views::View* GetContentsView() OVERRIDE;
45 virtual views::NonClientFrameView* CreateNonClientFrameView( 46 virtual views::NonClientFrameView* CreateNonClientFrameView(
46 views::Widget* widget) OVERRIDE; 47 views::Widget* widget) OVERRIDE;
47 virtual views::Widget* GetWidget() OVERRIDE; 48 virtual views::Widget* GetWidget() OVERRIDE;
48 virtual const views::Widget* GetWidget() const OVERRIDE; 49 virtual const views::Widget* GetWidget() const OVERRIDE;
49 virtual void DeleteDelegate() OVERRIDE; 50 virtual void DeleteDelegate() OVERRIDE;
50 virtual ui::ModalType GetModalType() const OVERRIDE; 51 virtual ui::ModalType GetModalType() const OVERRIDE;
51 52
(...skipping 15 matching lines...) Expand all
67 // The message box view whose commands we handle. 68 // The message box view whose commands we handle.
68 views::MessageBoxView* message_box_view_; 69 views::MessageBoxView* message_box_view_;
69 70
70 views::Widget* dialog_; 71 views::Widget* dialog_;
71 content::BrowserContext* browser_context_; 72 content::BrowserContext* browser_context_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); 74 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews);
74 }; 75 };
75 76
76 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 77 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698