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 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/renderer/content_renderer_client.h" | 9 #include "content/renderer/content_renderer_client.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 virtual SkBitmap* GetSadPluginBitmap(); | 21 virtual SkBitmap* GetSadPluginBitmap(); |
22 virtual std::string GetDefaultEncoding(); | 22 virtual std::string GetDefaultEncoding(); |
23 virtual WebKit::WebPlugin* CreatePlugin( | 23 virtual WebKit::WebPlugin* CreatePlugin( |
24 RenderView* render_view, | 24 RenderView* render_view, |
25 WebKit::WebFrame* frame, | 25 WebKit::WebFrame* frame, |
26 const WebKit::WebPluginParams& params); | 26 const WebKit::WebPluginParams& params); |
27 virtual std::string GetNavigationErrorHtml( | 27 virtual std::string GetNavigationErrorHtml( |
28 const WebKit::WebURLRequest& failed_request, | 28 const WebKit::WebURLRequest& failed_request, |
29 const WebKit::WebURLError& error); | 29 const WebKit::WebURLError& error); |
30 virtual std::string DetermineTextLanguage(const string16& text); | 30 virtual std::string DetermineTextLanguage(const string16& text); |
| 31 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 32 virtual bool AllowPopup(const GURL& creator); |
31 | 33 |
32 private: | 34 private: |
33 WebKit::WebPlugin* CreatePluginPlaceholder( | 35 WebKit::WebPlugin* CreatePluginPlaceholder( |
34 RenderView* render_view, | 36 RenderView* render_view, |
35 WebKit::WebFrame* frame, | 37 WebKit::WebFrame* frame, |
36 const WebKit::WebPluginParams& params, | 38 const WebKit::WebPluginParams& params, |
37 const webkit::npapi::PluginGroup& group, | 39 const webkit::npapi::PluginGroup& group, |
38 int resource_id, | 40 int resource_id, |
39 int message_id, | 41 int message_id, |
40 bool is_blocked_for_prerendering); | 42 bool is_blocked_for_prerendering); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace chrome | 45 } // namespace chrome |
44 | 46 |
45 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 47 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |