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

Side by Side Diff: content/browser/modal_html_dialog_delegate.cc

Issue 6538111: Move the rest of the core files in chrome\browser to content\browser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
« no previous file with comments | « content/browser/modal_html_dialog_delegate.h ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/modal_html_dialog_delegate.h" 5 #include "content/browser/modal_html_dialog_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/common/notification_source.h" 10 #include "chrome/common/notification_source.h"
11 #include "content/browser/renderer_host/render_view_host.h"
12 #include "content/browser/tab_contents/tab_contents.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 ModalHtmlDialogDelegate::ModalHtmlDialogDelegate( 15 ModalHtmlDialogDelegate::ModalHtmlDialogDelegate(
16 const GURL& url, int width, int height, const std::string& json_arguments, 16 const GURL& url, int width, int height, const std::string& json_arguments,
17 IPC::Message* sync_result, TabContents* contents) 17 IPC::Message* sync_result, TabContents* contents)
18 : contents_(contents), 18 : contents_(contents),
19 sync_response_(sync_result) { 19 sync_response_(sync_result) {
20 // Listen for when the TabContents or its renderer dies. 20 // Listen for when the TabContents or its renderer dies.
21 registrar_.Add(this, NotificationType::TAB_CONTENTS_DISCONNECTED, 21 registrar_.Add(this, NotificationType::TAB_CONTENTS_DISCONNECTED,
22 Source<TabContents>(contents_)); 22 Source<TabContents>(contents_));
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 json_retval); 68 json_retval);
69 } 69 }
70 70
71 // We are done with this request, so delete us. 71 // We are done with this request, so delete us.
72 delete this; 72 delete this;
73 } 73 }
74 74
75 bool ModalHtmlDialogDelegate::ShouldShowDialogTitle() const { 75 bool ModalHtmlDialogDelegate::ShouldShowDialogTitle() const {
76 return true; 76 return true;
77 } 77 }
OLDNEW
« no previous file with comments | « content/browser/modal_html_dialog_delegate.h ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698