| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 49 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 50 // been closed but not yet destroyed are excluded). | 50 // been closed but not yet destroyed are excluded). |
| 51 static void ForEach(RenderViewVisitor* visitor); | 51 static void ForEach(RenderViewVisitor* visitor); |
| 52 | 52 |
| 53 // Returns the main RenderFrame. | 53 // Returns the main RenderFrame. |
| 54 virtual RenderFrame* GetMainRenderFrame() = 0; | 54 virtual RenderFrame* GetMainRenderFrame() = 0; |
| 55 | 55 |
| 56 // Get the routing ID of the view. | 56 // Get the routing ID of the view. |
| 57 virtual int GetRoutingID() const = 0; | 57 virtual int GetRoutingID() const = 0; |
| 58 | 58 |
| 59 // Page IDs allow the browser to identify pages in each renderer process for | |
| 60 // keeping back/forward history in sync. | |
| 61 // Note that this is NOT updated for every main frame navigation, only for | |
| 62 // "regular" navigations that go into session history. In particular, client | |
| 63 // redirects, like the page cycler uses (document.location.href="foo") do not | |
| 64 // count as regular navigations and do not increment the page id. | |
| 65 virtual int GetPageId() const = 0; | |
| 66 | |
| 67 // Returns the size of the view. | 59 // Returns the size of the view. |
| 68 virtual gfx::Size GetSize() const = 0; | 60 virtual gfx::Size GetSize() const = 0; |
| 69 | 61 |
| 70 // Gets WebKit related preferences associated with this view. | 62 // Gets WebKit related preferences associated with this view. |
| 71 virtual WebPreferences& GetWebkitPreferences() = 0; | 63 virtual WebPreferences& GetWebkitPreferences() = 0; |
| 72 | 64 |
| 73 // Overrides the WebKit related preferences associated with this view. Note | 65 // Overrides the WebKit related preferences associated with this view. Note |
| 74 // that the browser process may update the preferences at any time. | 66 // that the browser process may update the preferences at any time. |
| 75 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; | 67 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; |
| 76 | 68 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 124 |
| 133 private: | 125 private: |
| 134 // This interface should only be implemented inside content. | 126 // This interface should only be implemented inside content. |
| 135 friend class RenderViewImpl; | 127 friend class RenderViewImpl; |
| 136 RenderView() {} | 128 RenderView() {} |
| 137 }; | 129 }; |
| 138 | 130 |
| 139 } // namespace content | 131 } // namespace content |
| 140 | 132 |
| 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 133 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |