| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 virtual void OnMsgFocus() OVERRIDE; | 422 virtual void OnMsgFocus() OVERRIDE; |
| 423 virtual void OnMsgBlur() OVERRIDE; | 423 virtual void OnMsgBlur() OVERRIDE; |
| 424 | 424 |
| 425 // IPC message handlers. | 425 // IPC message handlers. |
| 426 void OnMsgShowView(int route_id, | 426 void OnMsgShowView(int route_id, |
| 427 WindowOpenDisposition disposition, | 427 WindowOpenDisposition disposition, |
| 428 const gfx::Rect& initial_pos, | 428 const gfx::Rect& initial_pos, |
| 429 bool user_gesture); | 429 bool user_gesture); |
| 430 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 430 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); |
| 431 void OnMsgShowFullscreenWidget(int route_id); | 431 void OnMsgShowFullscreenWidget(int route_id); |
| 432 void OnMsgRunModal(IPC::Message* reply_msg); | 432 void OnMsgRunModal(int opener_id, IPC::Message* reply_msg); |
| 433 void OnMsgRenderViewReady(); | 433 void OnMsgRenderViewReady(); |
| 434 void OnMsgRenderViewGone(int status, int error_code); | 434 void OnMsgRenderViewGone(int status, int error_code); |
| 435 void OnMsgNavigate(const IPC::Message& msg); | 435 void OnMsgNavigate(const IPC::Message& msg); |
| 436 void OnMsgUpdateState(int32 page_id, | 436 void OnMsgUpdateState(int32 page_id, |
| 437 const std::string& state); | 437 const std::string& state); |
| 438 void OnMsgUpdateTitle(int32 page_id, | 438 void OnMsgUpdateTitle(int32 page_id, |
| 439 const string16& title, | 439 const string16& title, |
| 440 WebKit::WebTextDirection title_direction); | 440 WebKit::WebTextDirection title_direction); |
| 441 void OnMsgUpdateEncoding(const std::string& encoding); | 441 void OnMsgUpdateEncoding(const std::string& encoding); |
| 442 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); | 442 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 // navigation occurs. | 563 // navigation occurs. |
| 564 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; | 564 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; |
| 565 | 565 |
| 566 // Whether this RenderViewHost is currently swapped out, such that the view is | 566 // Whether this RenderViewHost is currently swapped out, such that the view is |
| 567 // being rendered by another process. | 567 // being rendered by another process. |
| 568 bool is_swapped_out_; | 568 bool is_swapped_out_; |
| 569 | 569 |
| 570 // If we were asked to RunModal, then this will hold the reply_msg that we | 570 // If we were asked to RunModal, then this will hold the reply_msg that we |
| 571 // must return to the renderer to unblock it. | 571 // must return to the renderer to unblock it. |
| 572 IPC::Message* run_modal_reply_msg_; | 572 IPC::Message* run_modal_reply_msg_; |
| 573 // This will hold the routing id of the RenderView that opened us. |
| 574 int run_modal_opener_id_; |
| 573 | 575 |
| 574 // Set to true when there is a pending ViewMsg_ShouldClose message. This | 576 // Set to true when there is a pending ViewMsg_ShouldClose message. This |
| 575 // ensures we don't spam the renderer with multiple beforeunload requests. | 577 // ensures we don't spam the renderer with multiple beforeunload requests. |
| 576 // When either this value or is_waiting_for_unload_ack_ is true, the value of | 578 // When either this value or is_waiting_for_unload_ack_ is true, the value of |
| 577 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a | 579 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a |
| 578 // cross-site transition or a tab close attempt. | 580 // cross-site transition or a tab close attempt. |
| 579 bool is_waiting_for_beforeunload_ack_; | 581 bool is_waiting_for_beforeunload_ack_; |
| 580 | 582 |
| 581 // Set to true when there is a pending ViewMsg_Close message. Also see | 583 // Set to true when there is a pending ViewMsg_Close message. Also see |
| 582 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_. | 584 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 625 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 624 }; | 626 }; |
| 625 | 627 |
| 626 #if defined(COMPILER_MSVC) | 628 #if defined(COMPILER_MSVC) |
| 627 #pragma warning(pop) | 629 #pragma warning(pop) |
| 628 #endif | 630 #endif |
| 629 | 631 |
| 630 } // namespace content | 632 } // namespace content |
| 631 | 633 |
| 632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |