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

Side by Side Diff: chrome/browser/ui/views/constrained_html_delegate_views.cc

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First version that links (and crashes) Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/webui/constrained_html_ui.h" 5 #include "chrome/browser/ui/webui/constrained_html_ui.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
10 #include "chrome/browser/ui/views/constrained_window_views.h" 10 #include "chrome/browser/ui/views/constrained_window_views.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void ConstrainedHtmlDelegateViews::OnDialogCloseFromWebUI() { 115 void ConstrainedHtmlDelegateViews::OnDialogCloseFromWebUI() {
116 closed_via_webui_ = true; 116 closed_via_webui_ = true;
117 window_->CloseConstrainedWindow(); 117 window_->CloseConstrainedWindow();
118 } 118 }
119 119
120 // static 120 // static
121 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog( 121 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
122 Profile* profile, 122 Profile* profile,
123 HtmlDialogUIDelegate* delegate, 123 HtmlDialogUIDelegate* delegate,
124 TabContentsWrapper* container) { 124 TabContentsWrapper* container) {
125 #if defined(USE_AURA)
126 // TODO(saintlou): Another atrocious hack until we get PureView version.
127 return NULL;
128 #else
125 ConstrainedHtmlDelegateViews* constrained_delegate = 129 ConstrainedHtmlDelegateViews* constrained_delegate =
126 new ConstrainedHtmlDelegateViews(profile, delegate); 130 new ConstrainedHtmlDelegateViews(profile, delegate);
127 ConstrainedWindow* constrained_window = 131 ConstrainedWindow* constrained_window =
128 new ConstrainedWindowViews(container->tab_contents(), 132 new ConstrainedWindowViews(container->tab_contents(),
129 constrained_delegate); 133 constrained_delegate);
130 constrained_delegate->set_window(constrained_window); 134 constrained_delegate->set_window(constrained_window);
131 return constrained_window; 135 return constrained_window;
136 #endif
132 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698