| 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_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace gfx { | 33 namespace gfx { |
| 34 class Point; | 34 class Point; |
| 35 class Size; | 35 class Size; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace content { | 38 namespace content { |
| 39 | 39 |
| 40 class RenderFrame; | 40 class RenderFrame; |
| 41 class RenderViewVisitor; | 41 class RenderViewVisitor; |
| 42 struct SSLStatus; | |
| 43 struct WebPreferences; | 42 struct WebPreferences; |
| 44 | 43 |
| 45 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project. | 44 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project. |
| 46 // New code should be added to RenderFrame instead. | 45 // New code should be added to RenderFrame instead. |
| 47 // | 46 // |
| 48 // For context, please see https://crbug.com/467770 and | 47 // For context, please see https://crbug.com/467770 and |
| 49 // http://www.chromium.org/developers/design-documents/site-isolation. | 48 // http://www.chromium.org/developers/design-documents/site-isolation. |
| 50 class CONTENT_EXPORT RenderView : public IPC::Sender { | 49 class CONTENT_EXPORT RenderView : public IPC::Sender { |
| 51 public: | 50 public: |
| 52 // Returns the RenderView containing the given WebView. | 51 // Returns the RenderView containing the given WebView. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 110 |
| 112 // Notifies the renderer that a paint is to be generated for the size | 111 // Notifies the renderer that a paint is to be generated for the size |
| 113 // passed in. | 112 // passed in. |
| 114 virtual void Repaint(const gfx::Size& size) = 0; | 113 virtual void Repaint(const gfx::Size& size) = 0; |
| 115 | 114 |
| 116 // Inject edit commands to be used for the next keyboard event. | 115 // Inject edit commands to be used for the next keyboard event. |
| 117 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 116 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
| 118 const std::string& value) = 0; | 117 const std::string& value) = 0; |
| 119 virtual void ClearEditCommands() = 0; | 118 virtual void ClearEditCommands() = 0; |
| 120 | 119 |
| 121 // Returns a collection of security info about |frame|. | |
| 122 virtual SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const = 0; | |
| 123 | |
| 124 // Returns |renderer_preferences_.accept_languages| value. | 120 // Returns |renderer_preferences_.accept_languages| value. |
| 125 virtual const std::string& GetAcceptLanguages() const = 0; | 121 virtual const std::string& GetAcceptLanguages() const = 0; |
| 126 | 122 |
| 127 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
| 128 virtual void UpdateTopControlsState(TopControlsState constraints, | 124 virtual void UpdateTopControlsState(TopControlsState constraints, |
| 129 TopControlsState current, | 125 TopControlsState current, |
| 130 bool animate) = 0; | 126 bool animate) = 0; |
| 131 #endif | 127 #endif |
| 132 | 128 |
| 133 // Converts the |rect| from Viewport coordinates to Window coordinates. | 129 // Converts the |rect| from Viewport coordinates to Window coordinates. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 147 | 143 |
| 148 private: | 144 private: |
| 149 // This interface should only be implemented inside content. | 145 // This interface should only be implemented inside content. |
| 150 friend class RenderViewImpl; | 146 friend class RenderViewImpl; |
| 151 RenderView() {} | 147 RenderView() {} |
| 152 }; | 148 }; |
| 153 | 149 |
| 154 } // namespace content | 150 } // namespace content |
| 155 | 151 |
| 156 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 152 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |