| 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual void UpdateDragCursor(bool is_drop_target) = 0; | 105 virtual void UpdateDragCursor(bool is_drop_target) = 0; |
| 106 | 106 |
| 107 // Callback to inform the browser it should take back focus. If reverse is | 107 // Callback to inform the browser it should take back focus. If reverse is |
| 108 // true, it means the focus was retrieved by doing a Shift-Tab. | 108 // true, it means the focus was retrieved by doing a Shift-Tab. |
| 109 virtual void TakeFocus(bool reverse) = 0; | 109 virtual void TakeFocus(bool reverse) = 0; |
| 110 | 110 |
| 111 // Callback to inform the browser that the renderer did not process the | 111 // Callback to inform the browser that the renderer did not process the |
| 112 // specified events. This gives an opportunity to the browser to process the | 112 // specified events. This gives an opportunity to the browser to process the |
| 113 // event (used for keyboard shortcuts). | 113 // event (used for keyboard shortcuts). |
| 114 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event) = 0; | 114 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event) = 0; |
| 115 |
| 116 // Forwards message to DevToolsClient in developer tools window open for |
| 117 // this page. |
| 118 virtual void ForwardMessageToDevToolsClient( |
| 119 const IPC::Message& message) = 0; |
| 115 }; | 120 }; |
| 116 | 121 |
| 117 // Interface for saving web pages. | 122 // Interface for saving web pages. |
| 118 class Save { | 123 class Save { |
| 119 public: | 124 public: |
| 120 // Notification that we get when we receive all savable links of | 125 // Notification that we get when we receive all savable links of |
| 121 // sub-resources for the current page, their referrers and list of frames | 126 // sub-resources for the current page, their referrers and list of frames |
| 122 // (include main frame and sub frames). | 127 // (include main frame and sub frames). |
| 123 virtual void OnReceivedSavableResourceLinksForCurrentPage( | 128 virtual void OnReceivedSavableResourceLinksForCurrentPage( |
| 124 const std::vector<GURL>& resources_list, | 129 const std::vector<GURL>& resources_list, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 401 |
| 397 // A find operation in the current page completed. | 402 // A find operation in the current page completed. |
| 398 virtual void OnFindReply(int request_id, | 403 virtual void OnFindReply(int request_id, |
| 399 int number_of_matches, | 404 int number_of_matches, |
| 400 const gfx::Rect& selection_rect, | 405 const gfx::Rect& selection_rect, |
| 401 int active_match_ordinal, | 406 int active_match_ordinal, |
| 402 bool final_update) { } | 407 bool final_update) { } |
| 403 }; | 408 }; |
| 404 | 409 |
| 405 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 410 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |