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

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

Issue 7972006: Removed sending of the content IPC messages from chrome and replaced them with corresponding APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 namespace ui { 55 namespace ui {
56 class Range; 56 class Range;
57 } // namespace ui 57 } // namespace ui
58 58
59 namespace webkit_glue { 59 namespace webkit_glue {
60 struct WebAccessibility; 60 struct WebAccessibility;
61 } // namespace webkit_glue 61 } // namespace webkit_glue
62 62
63 namespace WebKit { 63 namespace WebKit {
64 struct WebMediaPlayerAction; 64 struct WebMediaPlayerAction;
65 struct WebFindOptions;
65 } // namespace WebKit 66 } // namespace WebKit
66 67
67 namespace net { 68 namespace net {
68 class URLRequestContextGetter; 69 class URLRequestContextGetter;
69 } 70 }
70 71
71 // 72 //
72 // RenderViewHost 73 // RenderViewHost
73 // 74 //
74 // A RenderViewHost is responsible for creating and talking to a RenderView 75 // A RenderViewHost is responsible for creating and talking to a RenderView
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 248
248 // Runs some javascript within the context of a frame in the page. 249 // Runs some javascript within the context of a frame in the page.
249 void ExecuteJavascriptInWebFrame(const string16& frame_xpath, 250 void ExecuteJavascriptInWebFrame(const string16& frame_xpath,
250 const string16& jscript); 251 const string16& jscript);
251 252
252 // Runs some javascript within the context of a frame in the page. The result 253 // Runs some javascript within the context of a frame in the page. The result
253 // is sent back via the notification EXECUTE_JAVASCRIPT_RESULT. 254 // is sent back via the notification EXECUTE_JAVASCRIPT_RESULT.
254 int ExecuteJavascriptInWebFrameNotifyResult(const string16& frame_xpath, 255 int ExecuteJavascriptInWebFrameNotifyResult(const string16& frame_xpath,
255 const string16& jscript); 256 const string16& jscript);
256 257
257 // Edit operations.
258 void Undo();
259 void Redo();
260 void Cut();
261 void Copy();
262 void CopyToFindPboard();
263 void Paste();
264 void Delete();
265 void SelectAll();
266
267 // Notifies the RenderView that the JavaScript message that was shown was 258 // Notifies the RenderView that the JavaScript message that was shown was
268 // closed by the user. 259 // closed by the user.
269 void JavaScriptDialogClosed(IPC::Message* reply_msg, 260 void JavaScriptDialogClosed(IPC::Message* reply_msg,
270 bool success, 261 bool success,
271 const string16& user_input); 262 const string16& user_input);
272 263
273 // Notifies the renderer that a a drag operation that it started has ended, 264 // Notifies the renderer that a a drag operation that it started has ended,
274 // either in a drop or by being cancelled. 265 // either in a drop or by being cancelled.
275 void DragSourceEndedAt( 266 void DragSourceEndedAt(
276 int client_x, int client_y, int screen_x, int screen_y, 267 int client_x, int client_y, int screen_x, int screen_y,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 368
378 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; } 369 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; }
379 #endif 370 #endif
380 371
381 // Checks that the given renderer can request |url|, if not it sets it to an 372 // Checks that the given renderer can request |url|, if not it sets it to an
382 // empty url. 373 // empty url.
383 static void FilterURL(ChildProcessSecurityPolicy* policy, 374 static void FilterURL(ChildProcessSecurityPolicy* policy,
384 int renderer_id, 375 int renderer_id,
385 GURL* url); 376 GURL* url);
386 377
378 // Sets the alternate error page URL (link doctor) for the renderer process.
379 void SetAltErrorPageURL(const GURL& url);
380
381 // Asks the renderer to exit fullscreen
382 void ExitFullscreen();
383
384 // Passes a list of Webkit preferences to the renderer.
385 void UpdateWebkitPreferences(const WebPreferences& prefs);
386
387 // Tells the renderer to clear the focused node (if any).
388 void ClearFocusedNode();
389
390 // Set the zoom level for the current main frame
391 void SetZoomLevel(double level);
392
393 // Changes the zoom level for the current main frame.
394 void Zoom(PageZoom::Function zoom_function);
395
396 // Reloads the current focused frame.
397 void ReloadFrame();
398
399 // Finds text on a page.
400 void Find(int request_id, const string16& search_text,
401 const WebKit::WebFindOptions& options);
402
403 // Requests the renderer to evaluate an xpath to a frame and insert css
404 // into that frame's document.
405 void InsertCSS(const string16& frame_xpath, const std::string& css);
406
407 // Tells the renderer not to add scrollbars with height and width below a
408 // threshold.
409 void DisableScrollbarsForThreshold(const gfx::Size& size);
410
411 // Instructs the RenderView to send back updates to the preferred size.
412 void EnablePreferredSizeMode(int flags);
413
387 // NOTE: Do not add functions that just send an IPC message that are called in 414 // NOTE: Do not add functions that just send an IPC message that are called in
388 // one or two places. Have the caller send the IPC message directly. 415 // one or two places. Have the caller send the IPC message directly.
389 416
390 protected: 417 protected:
391 friend class RenderViewHostObserver; 418 friend class RenderViewHostObserver;
392 419
393 // Add and remove observers for filtering IPC messages. Clients must be sure 420 // Add and remove observers for filtering IPC messages. Clients must be sure
394 // to remove the observer before they go away. 421 // to remove the observer before they go away.
395 void AddObserver(RenderViewHostObserver* observer); 422 void AddObserver(RenderViewHostObserver* observer);
396 void RemoveObserver(RenderViewHostObserver* observer); 423 void RemoveObserver(RenderViewHostObserver* observer);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // The termination status of the last render view that terminated. 591 // The termination status of the last render view that terminated.
565 base::TerminationStatus render_view_termination_status_; 592 base::TerminationStatus render_view_termination_status_;
566 593
567 // A list of observers that filter messages. Weak references. 594 // A list of observers that filter messages. Weak references.
568 ObserverList<RenderViewHostObserver> observers_; 595 ObserverList<RenderViewHostObserver> observers_;
569 596
570 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 597 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
571 }; 598 };
572 599
573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698