| 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 // WebCore provides hooks for several kinds of functionality, allowing separate | 5 // WebCore provides hooks for several kinds of functionality, allowing separate |
| 6 // classes termed "delegates" to receive notifications (in the form of direct | 6 // classes termed "delegates" to receive notifications (in the form of direct |
| 7 // function calls) when certain events are about to occur or have just occurred. | 7 // function calls) when certain events are about to occur or have just occurred. |
| 8 // In some cases, the delegate implements the needed functionality; in others, | 8 // In some cases, the delegate implements the needed functionality; in others, |
| 9 // the delegate has some control over the behavior but doesn't actually | 9 // the delegate has some control over the behavior but doesn't actually |
| 10 // implement it. For example, the UI delegate is responsible for showing a | 10 // implement it. For example, the UI delegate is responsible for showing a |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 virtual void QueryFormFieldAutofill(const std::wstring& field_name, | 478 virtual void QueryFormFieldAutofill(const std::wstring& field_name, |
| 479 const std::wstring& text, | 479 const std::wstring& text, |
| 480 int64 node_id) { | 480 int64 node_id) { |
| 481 } | 481 } |
| 482 | 482 |
| 483 // Instructs the browser to remove the autofill entry specified from it DB. | 483 // Instructs the browser to remove the autofill entry specified from it DB. |
| 484 virtual void RemoveStoredAutofillEntry(const std::wstring& name, | 484 virtual void RemoveStoredAutofillEntry(const std::wstring& name, |
| 485 const std::wstring& value) { | 485 const std::wstring& value) { |
| 486 } | 486 } |
| 487 | 487 |
| 488 virtual void DidContentsSizeChange(WebWidget* webwidget, int new_width, |
| 489 int new_height) { |
| 490 } |
| 491 |
| 488 // UIDelegate -------------------------------------------------------------- | 492 // UIDelegate -------------------------------------------------------------- |
| 489 | 493 |
| 490 // Asks the browser to show a modal HTML dialog. The dialog is passed the | 494 // Asks the browser to show a modal HTML dialog. The dialog is passed the |
| 491 // given arguments as a JSON string, and returns its result as a JSON string | 495 // given arguments as a JSON string, and returns its result as a JSON string |
| 492 // through json_retval. | 496 // through json_retval. |
| 493 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, | 497 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, |
| 494 const std::string& json_arguments, | 498 const std::string& json_arguments, |
| 495 std::string* json_retval) { | 499 std::string* json_retval) { |
| 496 } | 500 } |
| 497 | 501 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 virtual void DidAddHistoryItem() { } | 789 virtual void DidAddHistoryItem() { } |
| 786 | 790 |
| 787 WebViewDelegate() { } | 791 WebViewDelegate() { } |
| 788 virtual ~WebViewDelegate() { } | 792 virtual ~WebViewDelegate() { } |
| 789 | 793 |
| 790 private: | 794 private: |
| 791 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 795 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
| 792 }; | 796 }; |
| 793 | 797 |
| 794 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 798 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |