| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // contents) should be sent to the browser immediately. This is normally | 98 // contents) should be sent to the browser immediately. This is normally |
| 99 // false, but set to true by some tests. | 99 // false, but set to true by some tests. |
| 100 virtual bool GetContentStateImmediately() const = 0; | 100 virtual bool GetContentStateImmediately() const = 0; |
| 101 | 101 |
| 102 // Filtered time per frame based on UpdateRect messages. | 102 // Filtered time per frame based on UpdateRect messages. |
| 103 virtual float GetFilteredTimePerFrame() const = 0; | 103 virtual float GetFilteredTimePerFrame() const = 0; |
| 104 | 104 |
| 105 // Returns the current visibility of the WebView. | 105 // Returns the current visibility of the WebView. |
| 106 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | 106 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
| 107 | 107 |
| 108 // Displays a modal alert dialog containing the given message. Returns | |
| 109 // once the user dismisses the dialog. | |
| 110 virtual void RunModalAlertDialog(blink::WebLocalFrame* frame, | |
| 111 const blink::WebString& message) = 0; | |
| 112 | |
| 113 // Used by plugins that load data in this RenderView to update the loading | 108 // Used by plugins that load data in this RenderView to update the loading |
| 114 // notifications. | 109 // notifications. |
| 115 virtual void DidStartLoading() = 0; | 110 virtual void DidStartLoading() = 0; |
| 116 virtual void DidStopLoading() = 0; | 111 virtual void DidStopLoading() = 0; |
| 117 | 112 |
| 118 // Notifies the renderer that a paint is to be generated for the size | 113 // Notifies the renderer that a paint is to be generated for the size |
| 119 // passed in. | 114 // passed in. |
| 120 virtual void Repaint(const gfx::Size& size) = 0; | 115 virtual void Repaint(const gfx::Size& size) = 0; |
| 121 | 116 |
| 122 // Inject edit commands to be used for the next keyboard event. | 117 // Inject edit commands to be used for the next keyboard event. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 141 | 136 |
| 142 private: | 137 private: |
| 143 // This interface should only be implemented inside content. | 138 // This interface should only be implemented inside content. |
| 144 friend class RenderViewImpl; | 139 friend class RenderViewImpl; |
| 145 RenderView() {} | 140 RenderView() {} |
| 146 }; | 141 }; |
| 147 | 142 |
| 148 } // namespace content | 143 } // namespace content |
| 149 | 144 |
| 150 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |