OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 class ContentRendererClient { | 58 class ContentRendererClient { |
59 public: | 59 public: |
60 virtual ~ContentRendererClient() {} | 60 virtual ~ContentRendererClient() {} |
61 | 61 |
62 // Notifies us that the RenderThread has been created. | 62 // Notifies us that the RenderThread has been created. |
63 virtual void RenderThreadStarted() = 0; | 63 virtual void RenderThreadStarted() = 0; |
64 | 64 |
65 // Notifies that a new RenderView has been created. | 65 // Notifies that a new RenderView has been created. |
66 virtual void RenderViewCreated(RenderView* render_view) = 0; | 66 virtual void RenderViewCreated(RenderView* render_view) = 0; |
67 | 67 |
| 68 // Notifies that a RenderView has been resized. |
| 69 virtual void RenderViewResized(RenderView* render_view, |
| 70 int new_width, int new_height) = 0; |
| 71 |
68 // Sets a number of views/tabs opened in this process. | 72 // Sets a number of views/tabs opened in this process. |
69 virtual void SetNumberOfViews(int number_of_views) = 0; | 73 virtual void SetNumberOfViews(int number_of_views) = 0; |
70 | 74 |
71 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 75 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
72 virtual SkBitmap* GetSadPluginBitmap() = 0; | 76 virtual SkBitmap* GetSadPluginBitmap() = 0; |
73 | 77 |
74 // Returns the default text encoding. | 78 // Returns the default text encoding. |
75 virtual std::string GetDefaultEncoding() = 0; | 79 virtual std::string GetDefaultEncoding() = 0; |
76 | 80 |
77 // Allows the embedder to override creating a plugin. If it returns true, then | 81 // Allows the embedder to override creating a plugin. If it returns true, then |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 virtual void RegisterPPAPIInterfaceFactories( | 179 virtual void RegisterPPAPIInterfaceFactories( |
176 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; | 180 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; |
177 | 181 |
178 // Return true if given URL can use TCP/UDP socket APIs. | 182 // Return true if given URL can use TCP/UDP socket APIs. |
179 virtual bool AllowSocketAPI(const GURL& url) = 0; | 183 virtual bool AllowSocketAPI(const GURL& url) = 0; |
180 }; | 184 }; |
181 | 185 |
182 } // namespace content | 186 } // namespace content |
183 | 187 |
184 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 188 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |