OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/extension_view_host.h" | 5 #include "chrome/browser/extensions/extension_view_host.h" |
6 | 6 |
7 #include "base/strings/string_piece.h" | 7 #include "base/strings/string_piece.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/extensions/window_controller.h" | 9 #include "chrome/browser/extensions/window_controller.h" |
10 #include "chrome/browser/file_select_helper.h" | 10 #include "chrome/browser/file_select_helper.h" |
11 #include "chrome/browser/platform_util.h" | 11 #include "chrome/browser/platform_util.h" |
12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/browser_dialogs.h" | 13 #include "chrome/browser/ui/browser_dialogs.h" |
14 #include "chrome/common/extensions/extension_messages.h" | |
15 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 14 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
16 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
17 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
18 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
19 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
20 #include "content/public/browser/web_contents_view.h" | 19 #include "content/public/browser/web_contents_view.h" |
21 #include "extensions/browser/extension_system.h" | 20 #include "extensions/browser/extension_system.h" |
22 #include "extensions/browser/runtime_data.h" | 21 #include "extensions/browser/runtime_data.h" |
| 22 #include "extensions/common/extension_messages.h" |
23 #include "grit/browser_resources.h" | 23 #include "grit/browser_resources.h" |
24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/events/keycodes/keyboard_codes.h" | 25 #include "ui/events/keycodes/keyboard_codes.h" |
26 | 26 |
27 using content::NativeWebKeyboardEvent; | 27 using content::NativeWebKeyboardEvent; |
28 using content::OpenURLParams; | 28 using content::OpenURLParams; |
29 using content::RenderViewHost; | 29 using content::RenderViewHost; |
30 using content::WebContents; | 30 using content::WebContents; |
31 using content::WebContentsObserver; | 31 using content::WebContentsObserver; |
32 using web_modal::WebContentsModalDialogManager; | 32 using web_modal::WebContentsModalDialogManager; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 331 |
332 void ExtensionViewHost::InsertInfobarCSS() { | 332 void ExtensionViewHost::InsertInfobarCSS() { |
333 static const base::StringPiece css( | 333 static const base::StringPiece css( |
334 ResourceBundle::GetSharedInstance().GetRawDataResource( | 334 ResourceBundle::GetSharedInstance().GetRawDataResource( |
335 IDR_EXTENSIONS_INFOBAR_CSS)); | 335 IDR_EXTENSIONS_INFOBAR_CSS)); |
336 | 336 |
337 host_contents()->GetMainFrame()->InsertCSS(css.as_string()); | 337 host_contents()->GetMainFrame()->InsertCSS(css.as_string()); |
338 } | 338 } |
339 | 339 |
340 } // namespace extensions | 340 } // namespace extensions |
OLD | NEW |