OLD | NEW |
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/renderer/plugins/missing_plugin.h" | 5 #include "chrome/renderer/plugins/missing_plugin.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/string_escape.h" | 8 #include "base/json/string_escape.h" |
9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/common/jstemplate_builder.h" | 13 #include "chrome/common/jstemplate_builder.h" |
14 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
15 #include "chrome/renderer/custom_menu_commands.h" | 15 #include "chrome/renderer/custom_menu_commands.h" |
16 #include "content/public/renderer/render_thread.h" | 16 #include "content/public/renderer/render_thread.h" |
17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "grit/renderer_resources.h" | 19 #include "grit/renderer_resources.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "ui/base/resource/resource_bundle.h" | 29 #include "ui/base/resource/resource_bundle.h" |
30 #include "webkit/plugins/npapi/plugin_group.h" | 30 #include "webkit/plugins/npapi/plugin_group.h" |
31 | 31 |
32 using WebKit::WebContextMenuData; | 32 using WebKit::WebContextMenuData; |
33 using WebKit::WebFrame; | 33 using WebKit::WebFrame; |
34 using WebKit::WebMenuItemInfo; | 34 using WebKit::WebMenuItemInfo; |
35 using WebKit::WebPlugin; | 35 using WebKit::WebPlugin; |
36 using WebKit::WebPluginParams; | 36 using WebKit::WebPluginParams; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 HidePluginInternal(); | 169 HidePluginInternal(); |
170 } else { | 170 } else { |
171 NOTREACHED(); | 171 NOTREACHED(); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 void MissingPlugin::DidFinishLoading() { | 175 void MissingPlugin::DidFinishLoading() { |
176 if (message_.length() > 0) | 176 if (message_.length() > 0) |
177 UpdateMessage(); | 177 UpdateMessage(); |
178 } | 178 } |
OLD | NEW |