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

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

Issue 12026016: Implement new Task Manager and Edit Bookmark style, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update ShowTaskManager and ShowBackgroundPages OVERRIDEs and calls. Created 7 years, 11 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/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // A DialogDelegate implementation that is-a View. Used to override GetWidget() 113 // A DialogDelegate implementation that is-a View. Used to override GetWidget()
114 // to call View's GetWidget() for the common case where a DialogDelegate 114 // to call View's GetWidget() for the common case where a DialogDelegate
115 // implementation is-a View. 115 // implementation is-a View.
116 class VIEWS_EXPORT DialogDelegateView : public DialogDelegate, 116 class VIEWS_EXPORT DialogDelegateView : public DialogDelegate,
117 public View { 117 public View {
118 public: 118 public:
119 DialogDelegateView(); 119 DialogDelegateView();
120 virtual ~DialogDelegateView(); 120 virtual ~DialogDelegateView();
121 121
122 // Create a |dialog| window Widget with the specified |context| or |parent|.
123 static Widget* CreateDialogWidget(DialogDelegateView* dialog,
124 gfx::NativeWindow context,
125 gfx::NativeWindow parent);
126
122 // Overridden from DialogDelegate: 127 // Overridden from DialogDelegate:
123 virtual Widget* GetWidget() OVERRIDE; 128 virtual Widget* GetWidget() OVERRIDE;
124 virtual const Widget* GetWidget() const OVERRIDE; 129 virtual const Widget* GetWidget() const OVERRIDE;
125 virtual View* GetContentsView() OVERRIDE; 130 virtual View* GetContentsView() OVERRIDE;
126 131
127 private: 132 private:
128 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 133 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
129 }; 134 };
130 135
131 } // namespace views 136 } // namespace views
132 137
133 #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