Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: content/public/browser/web_contents.h

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual RenderViewHost* GetRenderViewHost() const = 0; 213 virtual RenderViewHost* GetRenderViewHost() const = 0;
214 214
215 // Gets the current RenderViewHost's routing id. Returns 215 // Gets the current RenderViewHost's routing id. Returns
216 // MSG_ROUTING_NONE when there is no RenderViewHost. 216 // MSG_ROUTING_NONE when there is no RenderViewHost.
217 virtual int GetRoutingID() const = 0; 217 virtual int GetRoutingID() const = 0;
218 218
219 // Returns the currently active RenderWidgetHostView. This may change over 219 // Returns the currently active RenderWidgetHostView. This may change over
220 // time and can be nullptr (during setup and teardown). 220 // time and can be nullptr (during setup and teardown).
221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; 221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0;
222 222
223 // Causes the current page to be closed, including running its onunload event
224 // handler. A ClosePage_ACK message is sent when it is finished.
Charlie Reis 2015/04/29 17:31:18 We probably don't need to mention the ACK here, si
nasko 2015/04/29 21:15:33 Done.
225 virtual void ClosePage() = 0;
226
223 // Returns the currently active fullscreen widget. If there is none, returns 227 // Returns the currently active fullscreen widget. If there is none, returns
224 // nullptr. 228 // nullptr.
225 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; 229 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0;
226 230
227 // Returns the theme color for the underlying content as set by the 231 // Returns the theme color for the underlying content as set by the
228 // theme-color meta tag. 232 // theme-color meta tag.
229 virtual SkColor GetThemeColor() const = 0; 233 virtual SkColor GetThemeColor() const = 0;
230 234
231 // Create a WebUI page for the given url. In most cases, this doesn't need to 235 // Create a WebUI page for the given url. In most cases, this doesn't need to
232 // be called by embedders since content will create its own WebUI objects as 236 // be called by embedders since content will create its own WebUI objects as
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 647
644 private: 648 private:
645 // This interface should only be implemented inside content. 649 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 650 friend class WebContentsImpl;
647 WebContents() {} 651 WebContents() {}
648 }; 652 };
649 653
650 } // namespace content 654 } // namespace content
651 655
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 656 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698