OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // |operation| describes the current operation (none, move, copy, link.) | 118 // |operation| describes the current operation (none, move, copy, link.) |
119 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; | 119 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; |
120 | 120 |
121 // Notification that view for this delegate got the focus. | 121 // Notification that view for this delegate got the focus. |
122 virtual void GotFocus() = 0; | 122 virtual void GotFocus() = 0; |
123 | 123 |
124 // Callback to inform the browser it should take back focus. If reverse is | 124 // Callback to inform the browser it should take back focus. If reverse is |
125 // true, it means the focus was retrieved by doing a Shift-Tab. | 125 // true, it means the focus was retrieved by doing a Shift-Tab. |
126 virtual void TakeFocus(bool reverse) = 0; | 126 virtual void TakeFocus(bool reverse) = 0; |
127 | 127 |
| 128 // Returns whether the event is a reserved keyboard shortcut that should not |
| 129 // be sent to the renderer. |
| 130 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) = 0; |
| 131 |
128 // Callback to inform the browser that the renderer did not process the | 132 // Callback to inform the browser that the renderer did not process the |
129 // specified events. This gives an opportunity to the browser to process the | 133 // specified events. This gives an opportunity to the browser to process the |
130 // event (used for keyboard shortcuts). | 134 // event (used for keyboard shortcuts). |
131 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; | 135 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; |
132 | 136 |
133 // Notifications about mouse events in this view. This is useful for | 137 // Notifications about mouse events in this view. This is useful for |
134 // implementing global 'on hover' features external to the view. | 138 // implementing global 'on hover' features external to the view. |
135 virtual void HandleMouseEvent() = 0; | 139 virtual void HandleMouseEvent() = 0; |
136 virtual void HandleMouseLeave() = 0; | 140 virtual void HandleMouseLeave() = 0; |
137 | 141 |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 virtual bool IsExternalTabContainer() const; | 550 virtual bool IsExternalTabContainer() const; |
547 | 551 |
548 // The RenderView has inserted one css file into page. | 552 // The RenderView has inserted one css file into page. |
549 virtual void DidInsertCSS() {} | 553 virtual void DidInsertCSS() {} |
550 | 554 |
551 // A different node in the page got focused. | 555 // A different node in the page got focused. |
552 virtual void FocusedNodeChanged() {} | 556 virtual void FocusedNodeChanged() {} |
553 }; | 557 }; |
554 | 558 |
555 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 559 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |