Chromium Code Reviews| 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_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 // breadth-first traversal order. | 256 // breadth-first traversal order. |
| 257 virtual std::vector<RenderFrameHost*> GetAllFrames() = 0; | 257 virtual std::vector<RenderFrameHost*> GetAllFrames() = 0; |
| 258 | 258 |
| 259 // Sends the given IPC to all live frames in this WebContents and returns the | 259 // Sends the given IPC to all live frames in this WebContents and returns the |
| 260 // number of sent messages (i.e. the number of processed frames). | 260 // number of sent messages (i.e. the number of processed frames). |
| 261 virtual int SendToAllFrames(IPC::Message* message) = 0; | 261 virtual int SendToAllFrames(IPC::Message* message) = 0; |
| 262 | 262 |
| 263 // Gets the current RenderViewHost for this tab. | 263 // Gets the current RenderViewHost for this tab. |
| 264 virtual RenderViewHost* GetRenderViewHost() const = 0; | 264 virtual RenderViewHost* GetRenderViewHost() const = 0; |
| 265 | 265 |
| 266 // Gets the current RenderViewHost's routing id. Returns | |
| 267 // MSG_ROUTING_NONE when there is no RenderViewHost. | |
| 268 virtual int GetRoutingID() const = 0; | |
|
alexmos
2016/11/22 01:29:06
Interestingly, the old code handled the case where
| |
| 269 | |
| 270 // Returns the currently active RenderWidgetHostView. This may change over | 266 // Returns the currently active RenderWidgetHostView. This may change over |
| 271 // time and can be nullptr (during setup and teardown). | 267 // time and can be nullptr (during setup and teardown). |
| 272 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; | 268 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; |
| 273 | 269 |
| 274 // Returns the outermost RenderWidgetHostView. This will return the platform | 270 // Returns the outermost RenderWidgetHostView. This will return the platform |
| 275 // specific RenderWidgetHostView (as opposed to | 271 // specific RenderWidgetHostView (as opposed to |
| 276 // RenderWidgetHostViewChildFrame), which can be used to create context | 272 // RenderWidgetHostViewChildFrame), which can be used to create context |
| 277 // menus. | 273 // menus. |
| 278 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; | 274 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; |
| 279 | 275 |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 769 | 765 |
| 770 private: | 766 private: |
| 771 // This interface should only be implemented inside content. | 767 // This interface should only be implemented inside content. |
| 772 friend class WebContentsImpl; | 768 friend class WebContentsImpl; |
| 773 WebContents() {} | 769 WebContents() {} |
| 774 }; | 770 }; |
| 775 | 771 |
| 776 } // namespace content | 772 } // namespace content |
| 777 | 773 |
| 778 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |