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

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc

Issue 11647017: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stage changes to preserve history Created 8 years 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 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/ui/constrained_window.h" 9 #include "chrome/browser/ui/constrained_window.h"
10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" 10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return web_dialog_delegate_.get(); 56 return web_dialog_delegate_.get();
57 } 57 }
58 58
59 WebDialogDelegate* 59 WebDialogDelegate*
60 ConstrainedWebDialogDelegateBase::GetWebDialogDelegate() { 60 ConstrainedWebDialogDelegateBase::GetWebDialogDelegate() {
61 return web_dialog_delegate_.get(); 61 return web_dialog_delegate_.get();
62 } 62 }
63 63
64 void ConstrainedWebDialogDelegateBase::OnDialogCloseFromWebUI() { 64 void ConstrainedWebDialogDelegateBase::OnDialogCloseFromWebUI() {
65 closed_via_webui_ = true; 65 closed_via_webui_ = true;
66 window_->CloseConstrainedWindow(); 66 window_->CloseWebContentsModalDialog();
67 } 67 }
68 68
69 void ConstrainedWebDialogDelegateBase::set_window(ConstrainedWindow* window) { 69 void ConstrainedWebDialogDelegateBase::set_window(ConstrainedWindow* window) {
70 window_ = window; 70 window_ = window;
71 } 71 }
72 72
73 void ConstrainedWebDialogDelegateBase::set_override_tab_delegate( 73 void ConstrainedWebDialogDelegateBase::set_override_tab_delegate(
74 WebDialogWebContentsDelegate* override_tab_delegate) { 74 WebDialogWebContentsDelegate* override_tab_delegate) {
75 override_tab_delegate_.reset(override_tab_delegate); 75 override_tab_delegate_.reset(override_tab_delegate);
76 } 76 }
(...skipping 11 matching lines...) Expand all
88 } 88 }
89 89
90 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { 90 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() {
91 return web_contents_.get(); 91 return web_contents_.get();
92 } 92 }
93 93
94 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( 94 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent(
95 content::WebContents* source, 95 content::WebContents* source,
96 const NativeWebKeyboardEvent& event) { 96 const NativeWebKeyboardEvent& event) {
97 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/web_intent_picker_views.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698