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

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

Issue 10933085: Update ConstrainedWindowViews appearance according to mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review updates Created 8 years, 3 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 | Annotate | Revision Log
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 "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/window/dialog_delegate.h" 9 #include "ui/views/window/dialog_delegate.h"
10 10
(...skipping 12 matching lines...) Expand all
23 class TabModalConfirmDialogViews : public views::DialogDelegate { 23 class TabModalConfirmDialogViews : public views::DialogDelegate {
24 public: 24 public:
25 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, 25 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate,
26 TabContents* tab_contents); 26 TabContents* tab_contents);
27 27
28 // views::DialogDelegate: 28 // views::DialogDelegate:
29 virtual string16 GetWindowTitle() const OVERRIDE; 29 virtual string16 GetWindowTitle() const OVERRIDE;
30 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 30 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
31 virtual bool Cancel() OVERRIDE; 31 virtual bool Cancel() OVERRIDE;
32 virtual bool Accept() OVERRIDE; 32 virtual bool Accept() OVERRIDE;
33 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE;
33 34
34 // views::WidgetDelegate: 35 // views::WidgetDelegate:
35 virtual views::View* GetContentsView() OVERRIDE; 36 virtual views::View* GetContentsView() OVERRIDE;
36 virtual views::Widget* GetWidget() OVERRIDE; 37 virtual views::Widget* GetWidget() OVERRIDE;
37 virtual const views::Widget* GetWidget() const OVERRIDE; 38 virtual const views::Widget* GetWidget() const OVERRIDE;
38 virtual void DeleteDelegate() OVERRIDE; 39 virtual void DeleteDelegate() OVERRIDE;
39 40
40 private: 41 private:
41 virtual ~TabModalConfirmDialogViews(); 42 virtual ~TabModalConfirmDialogViews();
42 43
43 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 44 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
44 45
45 // The message box view whose commands we handle. 46 // The message box view whose commands we handle.
46 views::MessageBoxView* message_box_view_; 47 views::MessageBoxView* message_box_view_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); 49 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews);
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ 52 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698