| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 const std::vector<string16>& labels, | 393 const std::vector<string16>& labels, |
| 394 int default_suggestion_index); | 394 int default_suggestion_index); |
| 395 | 395 |
| 396 // Called by the FormFieldHistoryManager when the list of suggestions is | 396 // Called by the FormFieldHistoryManager when the list of suggestions is |
| 397 // ready. | 397 // ready. |
| 398 void AutocompleteSuggestionsReturned( | 398 void AutocompleteSuggestionsReturned( |
| 399 int query_id, | 399 int query_id, |
| 400 const std::vector<string16>& suggestions, | 400 const std::vector<string16>& suggestions, |
| 401 int default_suggestion_index); | 401 int default_suggestion_index); |
| 402 | 402 |
| 403 // Called by the AutoFillManager when the FormData has been filled out. |
| 404 void AutoFillFormDataFilled(int query_id, const FormData& form); |
| 405 |
| 403 // Notifies the Renderer that a move or resize of its containing window has | 406 // Notifies the Renderer that a move or resize of its containing window has |
| 404 // started (this is used to hide the autocomplete popups if any). | 407 // started (this is used to hide the autocomplete popups if any). |
| 405 void WindowMoveOrResizeStarted(); | 408 void WindowMoveOrResizeStarted(); |
| 406 | 409 |
| 407 // RenderWidgetHost public overrides. | 410 // RenderWidgetHost public overrides. |
| 408 virtual void Shutdown(); | 411 virtual void Shutdown(); |
| 409 virtual bool IsRenderView() const { return true; } | 412 virtual bool IsRenderView() const { return true; } |
| 410 virtual void OnMessageReceived(const IPC::Message& msg); | 413 virtual void OnMessageReceived(const IPC::Message& msg); |
| 411 virtual void GotFocus(); | 414 virtual void GotFocus(); |
| 412 virtual bool CanBlur() const; | 415 virtual bool CanBlur() const; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 const std::string& data, | 585 const std::string& data, |
| 583 int32 status); | 586 int32 status); |
| 584 | 587 |
| 585 void OnDidGetApplicationInfo(int32 page_id, | 588 void OnDidGetApplicationInfo(int32 page_id, |
| 586 const webkit_glue::WebApplicationInfo& info); | 589 const webkit_glue::WebApplicationInfo& info); |
| 587 void OnMsgShouldCloseACK(bool proceed); | 590 void OnMsgShouldCloseACK(bool proceed); |
| 588 void OnQueryFormFieldAutofill(int request_id, | 591 void OnQueryFormFieldAutofill(int request_id, |
| 589 const webkit_glue::FormField& field); | 592 const webkit_glue::FormField& field); |
| 590 void OnRemoveAutofillEntry(const string16& field_name, | 593 void OnRemoveAutofillEntry(const string16& field_name, |
| 591 const string16& value); | 594 const string16& value); |
| 595 void OnFillAutoFillFormData(int query_id, |
| 596 const FormData& form, |
| 597 const string16& name, |
| 598 const string16& label); |
| 592 | 599 |
| 593 void OnShowDesktopNotification(const GURL& source_origin, | 600 void OnShowDesktopNotification(const GURL& source_origin, |
| 594 const GURL& url, int notification_id); | 601 const GURL& url, int notification_id); |
| 595 void OnShowDesktopNotificationText(const GURL& origin, const GURL& icon, | 602 void OnShowDesktopNotificationText(const GURL& origin, const GURL& icon, |
| 596 const string16& title, | 603 const string16& title, |
| 597 const string16& text, | 604 const string16& text, |
| 598 int notification_id); | 605 int notification_id); |
| 599 void OnCancelDesktopNotification(int notification_id); | 606 void OnCancelDesktopNotification(int notification_id); |
| 600 void OnRequestNotificationPermission(const GURL& origin, int callback_id); | 607 void OnRequestNotificationPermission(const GURL& origin, int callback_id); |
| 601 | 608 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 // True if the render view can be shut down suddenly. | 685 // True if the render view can be shut down suddenly. |
| 679 bool sudden_termination_allowed_; | 686 bool sudden_termination_allowed_; |
| 680 | 687 |
| 681 // The session storage namespace id to be used by the associated render view. | 688 // The session storage namespace id to be used by the associated render view. |
| 682 int64 session_storage_namespace_id_; | 689 int64 session_storage_namespace_id_; |
| 683 | 690 |
| 684 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 691 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 685 }; | 692 }; |
| 686 | 693 |
| 687 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 694 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |