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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 188923002: Move RenderViewHost::InsertCSS to RenderFrameHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nasko Created 6 years, 9 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); 857 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
858 void OnUndo(); 858 void OnUndo();
859 void OnUnselect(); 859 void OnUnselect();
860 void OnAllowBindings(int enabled_bindings_flags); 860 void OnAllowBindings(int enabled_bindings_flags);
861 void OnAllowScriptToClose(bool script_can_close); 861 void OnAllowScriptToClose(bool script_can_close);
862 void OnCancelDownload(int32 download_id); 862 void OnCancelDownload(int32 download_id);
863 void OnClearFocusedElement(); 863 void OnClearFocusedElement();
864 void OnClosePage(); 864 void OnClosePage();
865 void OnShowContextMenu(const gfx::Point& location); 865 void OnShowContextMenu(const gfx::Point& location);
866 void OnCopyImageAt(int x, int y); 866 void OnCopyImageAt(int x, int y);
867 void OnCSSInsertRequest(const base::string16& frame_xpath,
868 const std::string& css);
869 void OnSetName(const std::string& name); 867 void OnSetName(const std::string& name);
870 void OnDeterminePageLanguage(); 868 void OnDeterminePageLanguage();
871 void OnDisableScrollbarsForSmallWindows( 869 void OnDisableScrollbarsForSmallWindows(
872 const gfx::Size& disable_scrollbars_size_limit); 870 const gfx::Size& disable_scrollbars_size_limit);
873 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, 871 void OnDragSourceEndedOrMoved(const gfx::Point& client_point,
874 const gfx::Point& screen_point, 872 const gfx::Point& screen_point,
875 bool ended, 873 bool ended,
876 blink::WebDragOperation drag_operation); 874 blink::WebDragOperation drag_operation);
877 void OnDragSourceSystemDragEnded(); 875 void OnDragSourceSystemDragEnded();
878 void OnDragTargetDrop(const gfx::Point& client_pt, 876 void OnDragTargetDrop(const gfx::Point& client_pt,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 const SkBitmap& image); 990 const SkBitmap& image);
993 991
994 // Requests to download a favicon image. When done, the RenderView is notified 992 // Requests to download a favicon image. When done, the RenderView is notified
995 // by way of DidDownloadFavicon. Returns true if the request was successfully 993 // by way of DidDownloadFavicon. Returns true if the request was successfully
996 // started, false otherwise. id is used to uniquely identify the request and 994 // started, false otherwise. id is used to uniquely identify the request and
997 // passed back to the DidDownloadFavicon method. If the image has multiple 995 // passed back to the DidDownloadFavicon method. If the image has multiple
998 // frames, the frame whose size is image_size is returned. If the image 996 // frames, the frame whose size is image_size is returned. If the image
999 // doesn't have a frame at the specified size, the first is returned. 997 // doesn't have a frame at the specified size, the first is returned.
1000 bool DownloadFavicon(int id, const GURL& image_url, int image_size); 998 bool DownloadFavicon(int id, const GURL& image_url, int image_size);
1001 999
1002 // Locates a sub frame with given xpath
1003 blink::WebFrame* GetChildFrame(const base::string16& frame_xpath) const;
1004
1005 // Returns the URL being loaded by the given frame's request. 1000 // Returns the URL being loaded by the given frame's request.
1006 GURL GetLoadingUrl(blink::WebFrame* frame) const; 1001 GURL GetLoadingUrl(blink::WebFrame* frame) const;
1007 1002
1008 // Should only be called if this object wraps a PluginDocument. 1003 // Should only be called if this object wraps a PluginDocument.
1009 blink::WebPlugin* GetWebPluginFromPluginDocument(); 1004 blink::WebPlugin* GetWebPluginFromPluginDocument();
1010 1005
1011 // Returns true if the |params| navigation is to an entry that has been 1006 // Returns true if the |params| navigation is to an entry that has been
1012 // cropped due to a recent navigation the browser did not know about. 1007 // cropped due to a recent navigation the browser did not know about.
1013 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, 1008 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params,
1014 bool is_reload); 1009 bool is_reload);
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 // use the Observer interface to filter IPC messages and receive frame change 1441 // use the Observer interface to filter IPC messages and receive frame change
1447 // notifications. 1442 // notifications.
1448 // --------------------------------------------------------------------------- 1443 // ---------------------------------------------------------------------------
1449 1444
1450 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1445 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1451 }; 1446 };
1452 1447
1453 } // namespace content 1448 } // namespace content
1454 1449
1455 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1450 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698