| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void OnFocus() override; | 321 void OnFocus() override; |
| 322 void OnBlur() override; | 322 void OnBlur() override; |
| 323 | 323 |
| 324 // IPC message handlers. | 324 // IPC message handlers. |
| 325 void OnShowView(int route_id, | 325 void OnShowView(int route_id, |
| 326 WindowOpenDisposition disposition, | 326 WindowOpenDisposition disposition, |
| 327 const gfx::Rect& initial_rect, | 327 const gfx::Rect& initial_rect, |
| 328 bool user_gesture); | 328 bool user_gesture); |
| 329 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 329 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
| 330 void OnShowFullscreenWidget(int route_id); | 330 void OnShowFullscreenWidget(int route_id); |
| 331 void OnRunModal(int opener_id, IPC::Message* reply_msg); | |
| 332 void OnRenderViewReady(); | 331 void OnRenderViewReady(); |
| 333 void OnRenderProcessGone(int status, int error_code); | 332 void OnRenderProcessGone(int status, int error_code); |
| 334 void OnUpdateState(int32 page_id, const PageState& state); | 333 void OnUpdateState(int32 page_id, const PageState& state); |
| 335 void OnUpdateTargetURL(const GURL& url); | 334 void OnUpdateTargetURL(const GURL& url); |
| 336 void OnClose(); | 335 void OnClose(); |
| 337 void OnRequestMove(const gfx::Rect& pos); | 336 void OnRequestMove(const gfx::Rect& pos); |
| 338 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); | 337 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); |
| 339 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 338 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 340 void OnPasteFromSelectionClipboard(); | 339 void OnPasteFromSelectionClipboard(); |
| 341 void OnRouteCloseEvent(); | 340 void OnRouteCloseEvent(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 415 |
| 417 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike | 416 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike |
| 418 // is_active_, this is false when the frame is pending swap out or deletion. | 417 // is_active_, this is false when the frame is pending swap out or deletion. |
| 419 // TODO(creis): Remove this when we no longer use swappedout://. | 418 // TODO(creis): Remove this when we no longer use swappedout://. |
| 420 // See http://crbug.com/357747. | 419 // See http://crbug.com/357747. |
| 421 bool is_swapped_out_; | 420 bool is_swapped_out_; |
| 422 | 421 |
| 423 // Routing ID for the main frame's RenderFrameHost. | 422 // Routing ID for the main frame's RenderFrameHost. |
| 424 int main_frame_routing_id_; | 423 int main_frame_routing_id_; |
| 425 | 424 |
| 426 // If we were asked to RunModal, then this will hold the reply_msg that we | |
| 427 // must return to the renderer to unblock it. | |
| 428 IPC::Message* run_modal_reply_msg_; | |
| 429 // This will hold the routing id of the RenderView that opened us. | |
| 430 int run_modal_opener_id_; | |
| 431 | |
| 432 // Set to true when waiting for a ViewHostMsg_ClosePageACK. | 425 // Set to true when waiting for a ViewHostMsg_ClosePageACK. |
| 433 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. | 426 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. |
| 434 // See http://crbug.com/418265. | 427 // See http://crbug.com/418265. |
| 435 bool is_waiting_for_close_ack_; | 428 bool is_waiting_for_close_ack_; |
| 436 | 429 |
| 437 // The termination status of the last render view that terminated. | 430 // The termination status of the last render view that terminated. |
| 438 base::TerminationStatus render_view_termination_status_; | 431 base::TerminationStatus render_view_termination_status_; |
| 439 | 432 |
| 440 // Set to true if we requested the on screen keyboard to be displayed. | 433 // Set to true if we requested the on screen keyboard to be displayed. |
| 441 bool virtual_keyboard_requested_; | 434 bool virtual_keyboard_requested_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 455 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 448 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 456 }; | 449 }; |
| 457 | 450 |
| 458 #if defined(COMPILER_MSVC) | 451 #if defined(COMPILER_MSVC) |
| 459 #pragma warning(pop) | 452 #pragma warning(pop) |
| 460 #endif | 453 #endif |
| 461 | 454 |
| 462 } // namespace content | 455 } // namespace content |
| 463 | 456 |
| 464 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |