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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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) 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const string16& message) OVERRIDE; 137 const string16& message) OVERRIDE;
138 virtual void DesktopNotificationPostClose(int notification_id, 138 virtual void DesktopNotificationPostClose(int notification_id,
139 bool by_user) OVERRIDE; 139 bool by_user) OVERRIDE;
140 virtual void DesktopNotificationPostClick(int notification_id) OVERRIDE; 140 virtual void DesktopNotificationPostClick(int notification_id) OVERRIDE;
141 virtual void DirectoryEnumerationFinished( 141 virtual void DirectoryEnumerationFinished(
142 int request_id, 142 int request_id,
143 const std::vector<base::FilePath>& files) OVERRIDE; 143 const std::vector<base::FilePath>& files) OVERRIDE;
144 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) OVERRIDE; 144 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) OVERRIDE;
145 virtual void DragSourceEndedAt( 145 virtual void DragSourceEndedAt(
146 int client_x, int client_y, int screen_x, int screen_y, 146 int client_x, int client_y, int screen_x, int screen_y,
147 WebKit::WebDragOperation operation) OVERRIDE; 147 blink::WebDragOperation operation) OVERRIDE;
148 virtual void DragSourceMovedTo( 148 virtual void DragSourceMovedTo(
149 int client_x, int client_y, int screen_x, int screen_y) OVERRIDE; 149 int client_x, int client_y, int screen_x, int screen_y) OVERRIDE;
150 virtual void DragSourceSystemDragEnded() OVERRIDE; 150 virtual void DragSourceSystemDragEnded() OVERRIDE;
151 virtual void DragTargetDragEnter( 151 virtual void DragTargetDragEnter(
152 const DropData& drop_data, 152 const DropData& drop_data,
153 const gfx::Point& client_pt, 153 const gfx::Point& client_pt,
154 const gfx::Point& screen_pt, 154 const gfx::Point& screen_pt,
155 WebKit::WebDragOperationsMask operations_allowed, 155 blink::WebDragOperationsMask operations_allowed,
156 int key_modifiers) OVERRIDE; 156 int key_modifiers) OVERRIDE;
157 virtual void DragTargetDragOver( 157 virtual void DragTargetDragOver(
158 const gfx::Point& client_pt, 158 const gfx::Point& client_pt,
159 const gfx::Point& screen_pt, 159 const gfx::Point& screen_pt,
160 WebKit::WebDragOperationsMask operations_allowed, 160 blink::WebDragOperationsMask operations_allowed,
161 int key_modifiers) OVERRIDE; 161 int key_modifiers) OVERRIDE;
162 virtual void DragTargetDragLeave() OVERRIDE; 162 virtual void DragTargetDragLeave() OVERRIDE;
163 virtual void DragTargetDrop(const gfx::Point& client_pt, 163 virtual void DragTargetDrop(const gfx::Point& client_pt,
164 const gfx::Point& screen_pt, 164 const gfx::Point& screen_pt,
165 int key_modifiers) OVERRIDE; 165 int key_modifiers) OVERRIDE;
166 virtual void EnableAutoResize(const gfx::Size& min_size, 166 virtual void EnableAutoResize(const gfx::Size& min_size,
167 const gfx::Size& max_size) OVERRIDE; 167 const gfx::Size& max_size) OVERRIDE;
168 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; 168 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE;
169 virtual void EnablePreferredSizeMode() OVERRIDE; 169 virtual void EnablePreferredSizeMode() OVERRIDE;
170 virtual void ExecuteCustomContextMenuCommand( 170 virtual void ExecuteCustomContextMenuCommand(
171 int action, const CustomContextMenuContext& context) OVERRIDE; 171 int action, const CustomContextMenuContext& context) OVERRIDE;
172 virtual void ExecuteMediaPlayerActionAtLocation( 172 virtual void ExecuteMediaPlayerActionAtLocation(
173 const gfx::Point& location, 173 const gfx::Point& location,
174 const WebKit::WebMediaPlayerAction& action) OVERRIDE; 174 const blink::WebMediaPlayerAction& action) OVERRIDE;
175 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath, 175 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath,
176 const string16& jscript) OVERRIDE; 176 const string16& jscript) OVERRIDE;
177 virtual void ExecuteJavascriptInWebFrameCallbackResult( 177 virtual void ExecuteJavascriptInWebFrameCallbackResult(
178 const string16& frame_xpath, 178 const string16& frame_xpath,
179 const string16& jscript, 179 const string16& jscript,
180 const JavascriptResultCallback& callback) OVERRIDE; 180 const JavascriptResultCallback& callback) OVERRIDE;
181 virtual void ExecutePluginActionAtLocation( 181 virtual void ExecutePluginActionAtLocation(
182 const gfx::Point& location, 182 const gfx::Point& location,
183 const WebKit::WebPluginAction& action) OVERRIDE; 183 const blink::WebPluginAction& action) OVERRIDE;
184 virtual void ExitFullscreen() OVERRIDE; 184 virtual void ExitFullscreen() OVERRIDE;
185 virtual void Find(int request_id, const string16& search_text, 185 virtual void Find(int request_id, const string16& search_text,
186 const WebKit::WebFindOptions& options) OVERRIDE; 186 const blink::WebFindOptions& options) OVERRIDE;
187 virtual void StopFinding(StopFindAction action) OVERRIDE; 187 virtual void StopFinding(StopFindAction action) OVERRIDE;
188 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; 188 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE;
189 virtual void FilesSelectedInChooser( 189 virtual void FilesSelectedInChooser(
190 const std::vector<ui::SelectedFileInfo>& files, 190 const std::vector<ui::SelectedFileInfo>& files,
191 FileChooserParams::Mode permissions) OVERRIDE; 191 FileChooserParams::Mode permissions) OVERRIDE;
192 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; 192 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE;
193 virtual int GetEnabledBindings() const OVERRIDE; 193 virtual int GetEnabledBindings() const OVERRIDE;
194 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 194 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
195 virtual void InsertCSS(const string16& frame_xpath, 195 virtual void InsertCSS(const string16& frame_xpath,
196 const std::string& css) OVERRIDE; 196 const std::string& css) OVERRIDE;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 // RenderWidgetHost public overrides. 378 // RenderWidgetHost public overrides.
379 virtual void Init() OVERRIDE; 379 virtual void Init() OVERRIDE;
380 virtual void Shutdown() OVERRIDE; 380 virtual void Shutdown() OVERRIDE;
381 virtual bool IsRenderView() const OVERRIDE; 381 virtual bool IsRenderView() const OVERRIDE;
382 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 382 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
383 virtual void GotFocus() OVERRIDE; 383 virtual void GotFocus() OVERRIDE;
384 virtual void LostCapture() OVERRIDE; 384 virtual void LostCapture() OVERRIDE;
385 virtual void LostMouseLock() OVERRIDE; 385 virtual void LostMouseLock() OVERRIDE;
386 virtual void ForwardMouseEvent( 386 virtual void ForwardMouseEvent(
387 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 387 const blink::WebMouseEvent& mouse_event) OVERRIDE;
388 virtual void OnPointerEventActivate() OVERRIDE; 388 virtual void OnPointerEventActivate() OVERRIDE;
389 virtual void ForwardKeyboardEvent( 389 virtual void ForwardKeyboardEvent(
390 const NativeWebKeyboardEvent& key_event) OVERRIDE; 390 const NativeWebKeyboardEvent& key_event) OVERRIDE;
391 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 391 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
392 392
393 // Creates a new RenderView with the given route id. 393 // Creates a new RenderView with the given route id.
394 void CreateNewWindow( 394 void CreateNewWindow(
395 int route_id, 395 int route_id,
396 int main_frame_route_id, 396 int main_frame_route_id,
397 const ViewHostMsg_CreateWindow_Params& params, 397 const ViewHostMsg_CreateWindow_Params& params,
398 SessionStorageNamespace* session_storage_namespace); 398 SessionStorageNamespace* session_storage_namespace);
399 399
400 // Creates a new RenderWidget with the given route id. |popup_type| indicates 400 // Creates a new RenderWidget with the given route id. |popup_type| indicates
401 // if this widget is a popup and what kind of popup it is (select, autofill). 401 // if this widget is a popup and what kind of popup it is (select, autofill).
402 void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 402 void CreateNewWidget(int route_id, blink::WebPopupType popup_type);
403 403
404 // Creates a full screen RenderWidget. 404 // Creates a full screen RenderWidget.
405 void CreateNewFullscreenWidget(int route_id); 405 void CreateNewFullscreenWidget(int route_id);
406 406
407 #if defined(OS_MACOSX) 407 #if defined(OS_MACOSX)
408 // Select popup menu related methods (for external popup menus). 408 // Select popup menu related methods (for external popup menus).
409 void DidSelectPopupMenuItem(int selected_index); 409 void DidSelectPopupMenuItem(int selected_index);
410 void DidCancelPopupMenu(); 410 void DidCancelPopupMenu();
411 #endif 411 #endif
412 412
(...skipping 20 matching lines...) Expand all
433 } 433 }
434 434
435 // Set the opener to null in the renderer process. 435 // Set the opener to null in the renderer process.
436 void DisownOpener(); 436 void DisownOpener();
437 437
438 // Turn on accessibility testing. The given callback will be run 438 // Turn on accessibility testing. The given callback will be run
439 // every time an accessibility notification is received from the 439 // every time an accessibility notification is received from the
440 // renderer process, and the accessibility tree it sent can be 440 // renderer process, and the accessibility tree it sent can be
441 // retrieved using accessibility_tree_for_testing(). 441 // retrieved using accessibility_tree_for_testing().
442 void SetAccessibilityCallbackForTesting( 442 void SetAccessibilityCallbackForTesting(
443 const base::Callback<void(WebKit::WebAXEvent)>& callback); 443 const base::Callback<void(blink::WebAXEvent)>& callback);
444 444
445 // Only valid if SetAccessibilityCallbackForTesting was called and 445 // Only valid if SetAccessibilityCallbackForTesting was called and
446 // the callback was run at least once. Returns a snapshot of the 446 // the callback was run at least once. Returns a snapshot of the
447 // accessibility tree received from the renderer as of the last time 447 // accessibility tree received from the renderer as of the last time
448 // a LoadComplete or LayoutComplete accessibility notification was received. 448 // a LoadComplete or LayoutComplete accessibility notification was received.
449 const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() { 449 const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() {
450 return accessibility_tree_; 450 return accessibility_tree_;
451 } 451 }
452 452
453 // Set accessibility callbacks. 453 // Set accessibility callbacks.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 void OnRenderProcessGone(int status, int error_code); 525 void OnRenderProcessGone(int status, int error_code);
526 void OnDidRedirectProvisionalLoad(int32 page_id, 526 void OnDidRedirectProvisionalLoad(int32 page_id,
527 const GURL& source_url, 527 const GURL& source_url,
528 const GURL& target_url); 528 const GURL& target_url);
529 void OnDidFailProvisionalLoadWithError( 529 void OnDidFailProvisionalLoadWithError(
530 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); 530 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
531 void OnNavigate(const IPC::Message& msg); 531 void OnNavigate(const IPC::Message& msg);
532 void OnUpdateState(int32 page_id, const PageState& state); 532 void OnUpdateState(int32 page_id, const PageState& state);
533 void OnUpdateTitle(int32 page_id, 533 void OnUpdateTitle(int32 page_id,
534 const string16& title, 534 const string16& title,
535 WebKit::WebTextDirection title_direction); 535 blink::WebTextDirection title_direction);
536 void OnUpdateEncoding(const std::string& encoding); 536 void OnUpdateEncoding(const std::string& encoding);
537 void OnUpdateTargetURL(int32 page_id, const GURL& url); 537 void OnUpdateTargetURL(int32 page_id, const GURL& url);
538 void OnClose(); 538 void OnClose();
539 void OnRequestMove(const gfx::Rect& pos); 539 void OnRequestMove(const gfx::Rect& pos);
540 void OnDidStartLoading(); 540 void OnDidStartLoading();
541 void OnDidStopLoading(); 541 void OnDidStopLoading();
542 void OnDidChangeLoadProgress(double load_progress); 542 void OnDidChangeLoadProgress(double load_progress);
543 void OnDidDisownOpener(); 543 void OnDidDisownOpener();
544 void OnDocumentAvailableInMainFrame(); 544 void OnDocumentAvailableInMainFrame();
545 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id); 545 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id);
(...skipping 18 matching lines...) Expand all
564 void OnRunJavaScriptMessage(const string16& message, 564 void OnRunJavaScriptMessage(const string16& message,
565 const string16& default_prompt, 565 const string16& default_prompt,
566 const GURL& frame_url, 566 const GURL& frame_url,
567 JavaScriptMessageType type, 567 JavaScriptMessageType type,
568 IPC::Message* reply_msg); 568 IPC::Message* reply_msg);
569 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 569 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
570 const string16& message, 570 const string16& message,
571 bool is_reload, 571 bool is_reload,
572 IPC::Message* reply_msg); 572 IPC::Message* reply_msg);
573 void OnStartDragging(const DropData& drop_data, 573 void OnStartDragging(const DropData& drop_data,
574 WebKit::WebDragOperationsMask operations_allowed, 574 blink::WebDragOperationsMask operations_allowed,
575 const SkBitmap& bitmap, 575 const SkBitmap& bitmap,
576 const gfx::Vector2d& bitmap_offset_in_dip, 576 const gfx::Vector2d& bitmap_offset_in_dip,
577 const DragEventSourceInfo& event_info); 577 const DragEventSourceInfo& event_info);
578 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); 578 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
579 void OnTargetDropACK(); 579 void OnTargetDropACK();
580 void OnTakeFocus(bool reverse); 580 void OnTakeFocus(bool reverse);
581 void OnFocusedNodeChanged(bool is_editable_node); 581 void OnFocusedNodeChanged(bool is_editable_node);
582 void OnAddMessageToConsole(int32 level, 582 void OnAddMessageToConsole(int32 level,
583 const string16& message, 583 const string16& message,
584 int32 line_no, 584 int32 line_no,
585 const string16& source_id); 585 const string16& source_id);
586 void OnUpdateInspectorSetting(const std::string& key, 586 void OnUpdateInspectorSetting(const std::string& key,
587 const std::string& value); 587 const std::string& value);
588 void OnShouldCloseACK( 588 void OnShouldCloseACK(
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 bool unload_ack_is_for_cross_site_transition_; 710 bool unload_ack_is_for_cross_site_transition_;
711 711
712 bool are_javascript_messages_suppressed_; 712 bool are_javascript_messages_suppressed_;
713 713
714 // The mapping of pending javascript calls created by 714 // The mapping of pending javascript calls created by
715 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding 715 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding
716 // callbacks. 716 // callbacks.
717 std::map<int, JavascriptResultCallback> javascript_callbacks_; 717 std::map<int, JavascriptResultCallback> javascript_callbacks_;
718 718
719 // Accessibility callback for testing. 719 // Accessibility callback for testing.
720 base::Callback<void(WebKit::WebAXEvent)> accessibility_testing_callback_; 720 base::Callback<void(blink::WebAXEvent)> accessibility_testing_callback_;
721 721
722 // The most recently received accessibility tree - for testing only. 722 // The most recently received accessibility tree - for testing only.
723 AccessibilityNodeDataTreeNode accessibility_tree_; 723 AccessibilityNodeDataTreeNode accessibility_tree_;
724 724
725 // True if the render view can be shut down suddenly. 725 // True if the render view can be shut down suddenly.
726 bool sudden_termination_allowed_; 726 bool sudden_termination_allowed_;
727 727
728 // The termination status of the last render view that terminated. 728 // The termination status of the last render view that terminated.
729 base::TerminationStatus render_view_termination_status_; 729 base::TerminationStatus render_view_termination_status_;
730 730
731 // When the last ShouldClose message was sent. 731 // When the last ShouldClose message was sent.
732 base::TimeTicks send_should_close_start_time_; 732 base::TimeTicks send_should_close_start_time_;
733 733
734 #if defined(OS_ANDROID) 734 #if defined(OS_ANDROID)
735 // Manages all the android mediaplayer objects and handling IPCs for video. 735 // Manages all the android mediaplayer objects and handling IPCs for video.
736 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_; 736 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_;
737 #endif 737 #endif
738 738
739 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 739 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
740 }; 740 };
741 741
742 #if defined(COMPILER_MSVC) 742 #if defined(COMPILER_MSVC)
743 #pragma warning(pop) 743 #pragma warning(pop)
744 #endif 744 #endif
745 745
746 } // namespace content 746 } // namespace content
747 747
748 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 748 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698