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

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

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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 #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/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_preferences_util.h" 10 #include "chrome/browser/renderer_preferences_util.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const { 75 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const {
76 return closed_via_webui_; 76 return closed_via_webui_;
77 } 77 }
78 78
79 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() { 79 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() {
80 release_contents_on_close_ = true; 80 release_contents_on_close_ = true;
81 } 81 }
82 82
83 NativeWebContentsModalDialog 83 web_modal::NativeWebContentsModalDialog
84 ConstrainedWebDialogDelegateBase::GetNativeDialog() { 84 ConstrainedWebDialogDelegateBase::GetNativeDialog() {
85 NOTREACHED(); 85 NOTREACHED();
86 return NULL; 86 return NULL;
87 } 87 }
88 88
89 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { 89 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() {
90 return web_contents_.get(); 90 return web_contents_.get();
91 } 91 }
92 92
93 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( 93 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent(
94 content::WebContents* source, 94 content::WebContents* source,
95 const NativeWebKeyboardEvent& event) { 95 const NativeWebKeyboardEvent& event) {
96 } 96 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h ('k') | chrome/browser/ui/webui/constrained_web_dialog_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698