| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 5 #ifndef CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
| 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 // as a popup. | 386 // as a popup. |
| 387 void DisassociateFromPopupCount(); | 387 void DisassociateFromPopupCount(); |
| 388 | 388 |
| 389 protected: | 389 protected: |
| 390 // Overridden from RenderWidgetHost: | 390 // Overridden from RenderWidgetHost: |
| 391 virtual void UnhandledInputEvent(const WebInputEvent& event); | 391 virtual void UnhandledInputEvent(const WebInputEvent& event); |
| 392 virtual void ForwardKeyboardEvent(const WebKeyboardEvent& key_event); | 392 virtual void ForwardKeyboardEvent(const WebKeyboardEvent& key_event); |
| 393 | 393 |
| 394 // IPC message handlers: | 394 // IPC message handlers: |
| 395 void OnMsgCreateWindow(int route_id, HANDLE modal_dialog_event); | 395 void OnMsgCreateWindow(int route_id, HANDLE modal_dialog_event); |
| 396 void OnMsgCreateWidget(int route_id); | 396 void OnMsgCreateWidget(int route_id, bool focus_on_show); |
| 397 void OnMsgShowView(int route_id, | 397 void OnMsgShowView(int route_id, |
| 398 WindowOpenDisposition disposition, | 398 WindowOpenDisposition disposition, |
| 399 const gfx::Rect& initial_pos, | 399 const gfx::Rect& initial_pos, |
| 400 bool user_gesture); | 400 bool user_gesture); |
| 401 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 401 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); |
| 402 void OnMsgRunModal(IPC::Message* reply_msg); | 402 void OnMsgRunModal(IPC::Message* reply_msg); |
| 403 void OnMsgRendererReady(); | 403 void OnMsgRendererReady(); |
| 404 void OnMsgRendererGone(); | 404 void OnMsgRendererGone(); |
| 405 void OnMsgNavigate(const IPC::Message& msg); | 405 void OnMsgNavigate(const IPC::Message& msg); |
| 406 void OnMsgUpdateState(int32 page_id, | 406 void OnMsgUpdateState(int32 page_id, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 const std::vector<GURL>& frames_list); | 484 const std::vector<GURL>& frames_list); |
| 485 | 485 |
| 486 void OnReceivedSerializedHtmlData(const GURL& frame_url, | 486 void OnReceivedSerializedHtmlData(const GURL& frame_url, |
| 487 const std::string& data, | 487 const std::string& data, |
| 488 int32 status); | 488 int32 status); |
| 489 | 489 |
| 490 void OnDidGetApplicationInfo(int32 page_id, | 490 void OnDidGetApplicationInfo(int32 page_id, |
| 491 const webkit_glue::WebApplicationInfo& info); | 491 const webkit_glue::WebApplicationInfo& info); |
| 492 void OnMsgShouldCloseACK(bool proceed); | 492 void OnMsgShouldCloseACK(bool proceed); |
| 493 void OnUnloadListenerChanged(bool has_handler); | 493 void OnUnloadListenerChanged(bool has_handler); |
| 494 | 494 void OnQueryFormFieldAutofill(const std::wstring& field_name, |
| 495 const std::wstring& user_text, |
| 496 int64 node_id, |
| 497 int request_id); |
| 495 virtual void NotifyRendererUnresponsive(); | 498 virtual void NotifyRendererUnresponsive(); |
| 496 virtual void NotifyRendererResponsive(); | 499 virtual void NotifyRendererResponsive(); |
| 497 | 500 |
| 498 // Helper function to send a navigation message. If a cross-site request is | 501 // Helper function to send a navigation message. If a cross-site request is |
| 499 // in progress, we may be suspended while waiting for the onbeforeunload | 502 // in progress, we may be suspended while waiting for the onbeforeunload |
| 500 // handler, so this function might buffer the message rather than sending it. | 503 // handler, so this function might buffer the message rather than sending it. |
| 501 void DoNavigate(ViewMsg_Navigate* nav_message); | 504 void DoNavigate(ViewMsg_Navigate* nav_message); |
| 502 | 505 |
| 503 private: | 506 private: |
| 504 friend class TestRenderViewHost; | 507 friend class TestRenderViewHost; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 virtual ~RenderViewHostFactory() {} | 580 virtual ~RenderViewHostFactory() {} |
| 578 | 581 |
| 579 virtual RenderViewHost* CreateRenderViewHost( | 582 virtual RenderViewHost* CreateRenderViewHost( |
| 580 SiteInstance* instance, | 583 SiteInstance* instance, |
| 581 RenderViewHostDelegate* delegate, | 584 RenderViewHostDelegate* delegate, |
| 582 int routing_id, | 585 int routing_id, |
| 583 HANDLE modal_dialog_event) = 0; | 586 HANDLE modal_dialog_event) = 0; |
| 584 }; | 587 }; |
| 585 | 588 |
| 586 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 589 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
| OLD | NEW |