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

Side by Side Diff: chrome/browser/infobars/infobar_extension_api.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 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) 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/infobars/infobar_extension_api.h" 5 #include "chrome/browser/infobars/infobar_extension_api.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
11 #include "chrome/browser/extensions/extension_infobar_delegate.h" 11 #include "chrome/browser/extensions/extension_infobar_delegate.h"
12 #include "chrome/browser/extensions/extension_tab_util.h" 12 #include "chrome/browser/extensions/extension_tab_util.h"
13 #include "chrome/browser/extensions/extension_tabs_module_constants.h" 13 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
14 #include "chrome/browser/infobars/infobar_tab_helper.h" 14 #include "chrome/browser/infobars/infobar_tab_helper.h"
15 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 15 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
18 #include "chrome/common/extensions/extension.h" 18 #include "chrome/common/extensions/extension.h"
19 #include "chrome/common/extensions/extension_error_utils.h" 19 #include "chrome/common/extensions/extension_error_utils.h"
20 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
21 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 23
24 namespace { 24 namespace {
25 25
26 const char kHtmlPath[] = "path"; 26 const char kHtmlPath[] = "path";
27 const char kTabId[] = "tabId"; 27 const char kTabId[] = "tabId";
28 const char kHeight[] = "height"; 28 const char kHeight[] = "height";
29 29
30 const char kNoCurrentWindowError[] = "No current browser window was found"; 30 const char kNoCurrentWindowError[] = "No current browser window was found";
31 const char kTabNotFoundError[] = "Specified tab (or default tab) not found"; 31 const char kTabNotFoundError[] = "Specified tab (or default tab) not found";
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 tab_contents->infobar_tab_helper()->AddInfoBar( 68 tab_contents->infobar_tab_helper()->AddInfoBar(
69 new ExtensionInfoBarDelegate(browser, tab_contents->infobar_tab_helper(), 69 new ExtensionInfoBarDelegate(browser, tab_contents->infobar_tab_helper(),
70 GetExtension(), url, height)); 70 GetExtension(), url, height));
71 71
72 // TODO(finnur): Return the actual DOMWindow object. Bug 26463. 72 // TODO(finnur): Return the actual DOMWindow object. Bug 26463.
73 result_.reset(ExtensionTabUtil::CreateWindowValue(browser, false)); 73 result_.reset(ExtensionTabUtil::CreateWindowValue(browser, false));
74 74
75 return true; 75 return true;
76 } 76 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/instant/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698