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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 void SendUpdateState(); | 225 void SendUpdateState(); |
226 | 226 |
227 // A popup widget opened by this view needs to be shown. | 227 // A popup widget opened by this view needs to be shown. |
228 void ShowCreatedPopupWidget(RenderWidget* popup_widget, | 228 void ShowCreatedPopupWidget(RenderWidget* popup_widget, |
229 blink::WebNavigationPolicy policy, | 229 blink::WebNavigationPolicy policy, |
230 const gfx::Rect& initial_rect); | 230 const gfx::Rect& initial_rect); |
231 // A RenderWidgetFullscreen widget opened by this view needs to be shown. | 231 // A RenderWidgetFullscreen widget opened by this view needs to be shown. |
232 void ShowCreatedFullscreenWidget(RenderWidget* fullscreen_widget, | 232 void ShowCreatedFullscreenWidget(RenderWidget* fullscreen_widget, |
233 blink::WebNavigationPolicy policy, | 233 blink::WebNavigationPolicy policy, |
234 const gfx::Rect& initial_rect); | 234 const gfx::Rect& initial_rect); |
235 // A RenderView widget opened by this view needs to be shown. | |
236 void ShowCreatedViewWidget(bool opened_by_user_gesture, | |
237 RenderWidget* render_view, | |
238 blink::WebNavigationPolicy policy, | |
239 const gfx::Rect& initial_rect); | |
240 | 235 |
241 // Returns the length of the session history of this RenderView. Note that | 236 // Returns the length of the session history of this RenderView. Note that |
242 // this only coincides with the actual length of the session history if this | 237 // this only coincides with the actual length of the session history if this |
243 // RenderView is the currently active RenderView of a WebContents. | 238 // RenderView is the currently active RenderView of a WebContents. |
244 unsigned GetLocalSessionHistoryLengthForTesting() const; | 239 unsigned GetLocalSessionHistoryLengthForTesting() const; |
245 | 240 |
246 // Invokes OnSetFocus and marks the widget as active depending on the value | 241 // Invokes OnSetFocus and marks the widget as active depending on the value |
247 // of |enable|. This is used for layout tests that need to control the focus | 242 // of |enable|. This is used for layout tests that need to control the focus |
248 // synchronously from the renderer. | 243 // synchronously from the renderer. |
249 void SetFocusAndActivateForTesting(bool enable); | 244 void SetFocusAndActivateForTesting(bool enable); |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 // use the Observer interface to filter IPC messages and receive frame change | 847 // use the Observer interface to filter IPC messages and receive frame change |
853 // notifications. | 848 // notifications. |
854 // --------------------------------------------------------------------------- | 849 // --------------------------------------------------------------------------- |
855 | 850 |
856 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 851 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
857 }; | 852 }; |
858 | 853 |
859 } // namespace content | 854 } // namespace content |
860 | 855 |
861 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 856 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |