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

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

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Tell the render view to enable a set of javascript bindings. The argument 76 // Tell the render view to enable a set of javascript bindings. The argument
77 // should be a combination of values from BindingsPolicy. 77 // should be a combination of values from BindingsPolicy.
78 virtual void AllowBindings(int binding_flags) = 0; 78 virtual void AllowBindings(int binding_flags) = 0;
79 79
80 // Tells the renderer to clear the focused element (if any). 80 // Tells the renderer to clear the focused element (if any).
81 virtual void ClearFocusedElement() = 0; 81 virtual void ClearFocusedElement() = 0;
82 82
83 // Returns true if the current focused element is editable. 83 // Returns true if the current focused element is editable.
84 virtual bool IsFocusedElementEditable() = 0; 84 virtual bool IsFocusedElementEditable() = 0;
85 85
86 // Causes the renderer to close the current page, including running its
87 // onunload event handler. A ClosePage_ACK message will be sent to the
88 // ResourceDispatcherHost when it is finished.
89 virtual void ClosePage() = 0;
90
91 // Copies the image at location x, y to the clipboard (if there indeed is an 86 // Copies the image at location x, y to the clipboard (if there indeed is an
92 // image at that location). 87 // image at that location).
93 virtual void CopyImageAt(int x, int y) = 0; 88 virtual void CopyImageAt(int x, int y) = 0;
94 89
95 // Saves the image at location x, y to the disk (if there indeed is an 90 // Saves the image at location x, y to the disk (if there indeed is an
96 // image at that location). 91 // image at that location).
97 virtual void SaveImageAt(int x, int y) = 0; 92 virtual void SaveImageAt(int x, int y) = 0;
98 93
99 // Notifies the listener that a directory enumeration is complete. 94 // Notifies the listener that a directory enumeration is complete.
100 virtual void DirectoryEnumerationFinished( 95 virtual void DirectoryEnumerationFinished(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 209
215 private: 210 private:
216 // This interface should only be implemented inside content. 211 // This interface should only be implemented inside content.
217 friend class RenderViewHostImpl; 212 friend class RenderViewHostImpl;
218 RenderViewHost() {} 213 RenderViewHost() {}
219 }; 214 };
220 215
221 } // namespace content 216 } // namespace content
222 217
223 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 218 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698