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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 387993004: MacViews: Change Widget context type to NativeWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/accessibility/ax_enums.h" 10 #include "ui/accessibility/ax_enums.h"
(...skipping 16 matching lines...) Expand all
27 // 27 //
28 /////////////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////////////
29 class VIEWS_EXPORT DialogDelegate : public ui::DialogModel, 29 class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
30 public WidgetDelegate { 30 public WidgetDelegate {
31 public: 31 public:
32 DialogDelegate(); 32 DialogDelegate();
33 virtual ~DialogDelegate(); 33 virtual ~DialogDelegate();
34 34
35 // Create a dialog widget with the specified |context| or |parent|. 35 // Create a dialog widget with the specified |context| or |parent|.
36 static Widget* CreateDialogWidget(WidgetDelegate* delegate, 36 static Widget* CreateDialogWidget(WidgetDelegate* delegate,
37 gfx::NativeView context, 37 gfx::NativeWindow context,
38 gfx::NativeView parent); 38 gfx::NativeView parent);
39 39
40 // Override this function to display an extra view adjacent to the buttons. 40 // Override this function to display an extra view adjacent to the buttons.
41 // Overrides may construct the view; this will only be called once per dialog. 41 // Overrides may construct the view; this will only be called once per dialog.
42 virtual View* CreateExtraView(); 42 virtual View* CreateExtraView();
43 43
44 // Override this function to display an extra view in the titlebar. 44 // Override this function to display an extra view in the titlebar.
45 // Overrides may construct the view; this will only be called once per dialog. 45 // Overrides may construct the view; this will only be called once per dialog.
46 // Note: this only works for new style dialogs. 46 // Note: this only works for new style dialogs.
47 virtual View* CreateTitlebarExtraView(); 47 virtual View* CreateTitlebarExtraView();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual const Widget* GetWidget() const OVERRIDE; 129 virtual const Widget* GetWidget() const OVERRIDE;
130 virtual View* GetContentsView() OVERRIDE; 130 virtual View* GetContentsView() OVERRIDE;
131 131
132 private: 132 private:
133 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 133 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
134 }; 134 };
135 135
136 } // namespace views 136 } // namespace views
137 137
138 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 138 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698