| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 const base::FilePath& local_directory_name); | 242 const base::FilePath& local_directory_name); |
| 243 | 243 |
| 244 // Notifies the RenderViewHost that its load state changed. | 244 // Notifies the RenderViewHost that its load state changed. |
| 245 void LoadStateChanged(const GURL& url, | 245 void LoadStateChanged(const GURL& url, |
| 246 const net::LoadStateWithParam& load_state, | 246 const net::LoadStateWithParam& load_state, |
| 247 uint64 upload_position, | 247 uint64 upload_position, |
| 248 uint64 upload_size); | 248 uint64 upload_size); |
| 249 | 249 |
| 250 // RenderWidgetHost public overrides. | 250 // RenderWidgetHost public overrides. |
| 251 void Init() override; | 251 void Init() override; |
| 252 void Shutdown() override; | |
| 253 void WasHidden() override; | 252 void WasHidden() override; |
| 254 void WasShown(const ui::LatencyInfo& latency_info) override; | 253 void WasShown(const ui::LatencyInfo& latency_info) override; |
| 255 bool IsRenderView() const override; | 254 bool IsRenderView() const override; |
| 256 bool OnMessageReceived(const IPC::Message& msg) override; | 255 bool OnMessageReceived(const IPC::Message& msg) override; |
| 257 void GotFocus() override; | 256 void GotFocus() override; |
| 258 void LostCapture() override; | 257 void LostCapture() override; |
| 259 void LostMouseLock() override; | 258 void LostMouseLock() override; |
| 260 void SetIsLoading(bool is_loading) override; | 259 void SetIsLoading(bool is_loading) override; |
| 261 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; | 260 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; |
| 262 void OnPointerEventActivate() override; | 261 void OnPointerEventActivate() override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void OnFocus() override; | 320 void OnFocus() override; |
| 322 void OnBlur() override; | 321 void OnBlur() override; |
| 323 | 322 |
| 324 // IPC message handlers. | 323 // IPC message handlers. |
| 325 void OnShowView(int route_id, | 324 void OnShowView(int route_id, |
| 326 WindowOpenDisposition disposition, | 325 WindowOpenDisposition disposition, |
| 327 const gfx::Rect& initial_rect, | 326 const gfx::Rect& initial_rect, |
| 328 bool user_gesture); | 327 bool user_gesture); |
| 329 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 328 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
| 330 void OnShowFullscreenWidget(int route_id); | 329 void OnShowFullscreenWidget(int route_id); |
| 331 void OnRunModal(int opener_id, IPC::Message* reply_msg); | |
| 332 void OnRenderViewReady(); | 330 void OnRenderViewReady(); |
| 333 void OnRenderProcessGone(int status, int error_code); | 331 void OnRenderProcessGone(int status, int error_code); |
| 334 void OnUpdateState(int32 page_id, const PageState& state); | 332 void OnUpdateState(int32 page_id, const PageState& state); |
| 335 void OnUpdateTargetURL(const GURL& url); | 333 void OnUpdateTargetURL(const GURL& url); |
| 336 void OnClose(); | 334 void OnClose(); |
| 337 void OnRequestMove(const gfx::Rect& pos); | 335 void OnRequestMove(const gfx::Rect& pos); |
| 338 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); | 336 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); |
| 339 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 337 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 340 void OnPasteFromSelectionClipboard(); | 338 void OnPasteFromSelectionClipboard(); |
| 341 void OnRouteCloseEvent(); | 339 void OnRouteCloseEvent(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 414 |
| 417 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike | 415 // 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. | 416 // 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://. | 417 // TODO(creis): Remove this when we no longer use swappedout://. |
| 420 // See http://crbug.com/357747. | 418 // See http://crbug.com/357747. |
| 421 bool is_swapped_out_; | 419 bool is_swapped_out_; |
| 422 | 420 |
| 423 // Routing ID for the main frame's RenderFrameHost. | 421 // Routing ID for the main frame's RenderFrameHost. |
| 424 int main_frame_routing_id_; | 422 int main_frame_routing_id_; |
| 425 | 423 |
| 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. | 424 // Set to true when waiting for a ViewHostMsg_ClosePageACK. |
| 433 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. | 425 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. |
| 434 // See http://crbug.com/418265. | 426 // See http://crbug.com/418265. |
| 435 bool is_waiting_for_close_ack_; | 427 bool is_waiting_for_close_ack_; |
| 436 | 428 |
| 437 // The termination status of the last render view that terminated. | 429 // The termination status of the last render view that terminated. |
| 438 base::TerminationStatus render_view_termination_status_; | 430 base::TerminationStatus render_view_termination_status_; |
| 439 | 431 |
| 440 // Set to true if we requested the on screen keyboard to be displayed. | 432 // Set to true if we requested the on screen keyboard to be displayed. |
| 441 bool virtual_keyboard_requested_; | 433 bool virtual_keyboard_requested_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 455 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 447 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 456 }; | 448 }; |
| 457 | 449 |
| 458 #if defined(COMPILER_MSVC) | 450 #if defined(COMPILER_MSVC) |
| 459 #pragma warning(pop) | 451 #pragma warning(pop) |
| 460 #endif | 452 #endif |
| 461 | 453 |
| 462 } // namespace content | 454 } // namespace content |
| 463 | 455 |
| 464 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 456 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |