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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 typedef base::Callback<void( | 319 typedef base::Callback<void( |
320 const gfx::Size&, const std::vector<unsigned char>&)> | 320 const gfx::Size&, const std::vector<unsigned char>&)> |
321 WindowSnapshotCallback; | 321 WindowSnapshotCallback; |
322 | 322 |
323 void GetWindowSnapshot(const WindowSnapshotCallback& callback); | 323 void GetWindowSnapshot(const WindowSnapshotCallback& callback); |
324 | 324 |
325 // Dispatches the current navigation state to the browser. Called on a | 325 // Dispatches the current navigation state to the browser. Called on a |
326 // periodic timer so we don't send too many messages. | 326 // periodic timer so we don't send too many messages. |
327 void SyncNavigationState(); | 327 void SyncNavigationState(); |
328 | 328 |
| 329 // Temporary call until all this media code moves to RenderFrame. |
| 330 // TODO(jam): remove me |
| 331 blink::WebMediaPlayer* CreateMediaPlayer( |
| 332 RenderFrame* render_frame, |
| 333 blink::WebFrame* frame, |
| 334 const blink::WebURL& url, |
| 335 blink::WebMediaPlayerClient* client); |
| 336 |
329 // Returns the length of the session history of this RenderView. Note that | 337 // Returns the length of the session history of this RenderView. Note that |
330 // this only coincides with the actual length of the session history if this | 338 // this only coincides with the actual length of the session history if this |
331 // RenderView is the currently active RenderView of a WebContents. | 339 // RenderView is the currently active RenderView of a WebContents. |
332 unsigned GetLocalSessionHistoryLengthForTesting() const; | 340 unsigned GetLocalSessionHistoryLengthForTesting() const; |
333 | 341 |
334 // Invokes OnSetFocus and marks the widget as active depending on the value | 342 // Invokes OnSetFocus and marks the widget as active depending on the value |
335 // of |enable|. This is used for layout tests that need to control the focus | 343 // of |enable|. This is used for layout tests that need to control the focus |
336 // synchronously from the renderer. | 344 // synchronously from the renderer. |
337 void SetFocusAndActivateForTesting(bool enable); | 345 void SetFocusAndActivateForTesting(bool enable); |
338 | 346 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 // blink::WebPageSerializerClient implementation ---------------------------- | 620 // blink::WebPageSerializerClient implementation ---------------------------- |
613 | 621 |
614 virtual void didSerializeDataForFrame( | 622 virtual void didSerializeDataForFrame( |
615 const blink::WebURL& frame_url, | 623 const blink::WebURL& frame_url, |
616 const blink::WebCString& data, | 624 const blink::WebCString& data, |
617 PageSerializationStatus status) OVERRIDE; | 625 PageSerializationStatus status) OVERRIDE; |
618 | 626 |
619 // RenderView implementation ------------------------------------------------- | 627 // RenderView implementation ------------------------------------------------- |
620 | 628 |
621 virtual bool Send(IPC::Message* message) OVERRIDE; | 629 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 630 virtual RenderFrame* GetMainRenderFrame() OVERRIDE; |
622 virtual int GetRoutingID() const OVERRIDE; | 631 virtual int GetRoutingID() const OVERRIDE; |
623 virtual int GetPageId() const OVERRIDE; | 632 virtual int GetPageId() const OVERRIDE; |
624 virtual gfx::Size GetSize() const OVERRIDE; | 633 virtual gfx::Size GetSize() const OVERRIDE; |
625 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; | 634 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; |
626 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; | 635 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; |
627 virtual blink::WebView* GetWebView() OVERRIDE; | 636 virtual blink::WebView* GetWebView() OVERRIDE; |
628 virtual blink::WebNode GetFocusedNode() const OVERRIDE; | 637 virtual blink::WebNode GetFocusedNode() const OVERRIDE; |
629 virtual blink::WebNode GetContextMenuNode() const OVERRIDE; | 638 virtual blink::WebNode GetContextMenuNode() const OVERRIDE; |
630 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; | 639 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; |
631 virtual void EvaluateScript(const base::string16& frame_xpath, | 640 virtual void EvaluateScript(const base::string16& frame_xpath, |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 // use the Observer interface to filter IPC messages and receive frame change | 1527 // use the Observer interface to filter IPC messages and receive frame change |
1519 // notifications. | 1528 // notifications. |
1520 // --------------------------------------------------------------------------- | 1529 // --------------------------------------------------------------------------- |
1521 | 1530 |
1522 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1531 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1523 }; | 1532 }; |
1524 | 1533 |
1525 } // namespace content | 1534 } // namespace content |
1526 | 1535 |
1527 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1536 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |