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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 // @param link_url The absolute URL of the link that contains the node the | 553 // @param link_url The absolute URL of the link that contains the node the |
554 // mouse right clicked on | 554 // mouse right clicked on |
555 // @param image_url The absolute URL of the image that the mouse right | 555 // @param image_url The absolute URL of the image that the mouse right |
556 // clicked on | 556 // clicked on |
557 // @param page_url The URL of the page the mouse right clicked on | 557 // @param page_url The URL of the page the mouse right clicked on |
558 // @param frame_url The URL of the subframe the mouse right clicked on | 558 // @param frame_url The URL of the subframe the mouse right clicked on |
559 // @param selection_text The raw text of the selection that the mouse right | 559 // @param selection_text The raw text of the selection that the mouse right |
560 // clicked on | 560 // clicked on |
561 // @param misspelled_word The editable (possibily) misspelled word | 561 // @param misspelled_word The editable (possibily) misspelled word |
562 // in the Editor on which dictionary lookup for suggestions will be done. | 562 // in the Editor on which dictionary lookup for suggestions will be done. |
563 // @param edit_flags Which edit operations the renderer believes are available | 563 // @param edit_flags which edit operations the renderer believes are available |
564 // @param frame_encoding Which indicates the encoding of current focused | 564 // @param security_info |
565 // sub frame. | 565 // @param frame_charset which indicates the character encoding of |
| 566 // the currently focused frame. |
566 virtual void ShowContextMenu(WebView* webview, | 567 virtual void ShowContextMenu(WebView* webview, |
567 ContextNode node, | 568 ContextNode node, |
568 int x, | 569 int x, |
569 int y, | 570 int y, |
570 const GURL& link_url, | 571 const GURL& link_url, |
571 const GURL& image_url, | 572 const GURL& image_url, |
572 const GURL& page_url, | 573 const GURL& page_url, |
573 const GURL& frame_url, | 574 const GURL& frame_url, |
574 const std::wstring& selection_text, | 575 const std::wstring& selection_text, |
575 const std::wstring& misspelled_word, | 576 const std::wstring& misspelled_word, |
576 int edit_flags, | 577 int edit_flags, |
577 const std::string& security_info) { | 578 const std::string& security_info, |
| 579 const std::string& frame_charset) { |
578 } | 580 } |
579 | 581 |
580 // Starts a drag session with the supplied contextual information. | 582 // Starts a drag session with the supplied contextual information. |
581 // webview: The WebView sending the delegate method. | 583 // webview: The WebView sending the delegate method. |
582 // drop_data: a WebDropData struct which should contain all the necessary | 584 // drop_data: a WebDropData struct which should contain all the necessary |
583 // information for dragging data out of the webview. | 585 // information for dragging data out of the webview. |
584 virtual void StartDragging(WebView* webview, | 586 virtual void StartDragging(WebView* webview, |
585 const WebKit::WebDragData& drag_data) { | 587 const WebKit::WebDragData& drag_data) { |
586 } | 588 } |
587 | 589 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 virtual void DidAddHistoryItem() { } | 767 virtual void DidAddHistoryItem() { } |
766 | 768 |
767 WebViewDelegate() { } | 769 WebViewDelegate() { } |
768 virtual ~WebViewDelegate() { } | 770 virtual ~WebViewDelegate() { } |
769 | 771 |
770 private: | 772 private: |
771 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 773 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
772 }; | 774 }; |
773 | 775 |
774 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 776 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
OLD | NEW |