| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // true, it means the focus was retrieved by doing a Shift-Tab. | 126 // true, it means the focus was retrieved by doing a Shift-Tab. |
| 127 virtual void TakeFocus(bool reverse) = 0; | 127 virtual void TakeFocus(bool reverse) = 0; |
| 128 | 128 |
| 129 // Returns whether the event is a reserved keyboard shortcut that should not | 129 // Returns whether the event is a reserved keyboard shortcut that should not |
| 130 // be sent to the renderer. | 130 // be sent to the renderer. |
| 131 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) = 0; | 131 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) = 0; |
| 132 | 132 |
| 133 // Callback to inform the browser that the renderer did not process the | 133 // Callback to inform the browser that the renderer did not process the |
| 134 // specified events. This gives an opportunity to the browser to process the | 134 // specified events. This gives an opportunity to the browser to process the |
| 135 // event (used for keyboard shortcuts). | 135 // event (used for keyboard shortcuts). |
| 136 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; | 136 // Returns true if the event was handled. |
| 137 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; |
| 137 | 138 |
| 138 // Notifications about mouse events in this view. This is useful for | 139 // Notifications about mouse events in this view. This is useful for |
| 139 // implementing global 'on hover' features external to the view. | 140 // implementing global 'on hover' features external to the view. |
| 140 virtual void HandleMouseEvent() = 0; | 141 virtual void HandleMouseEvent() = 0; |
| 141 virtual void HandleMouseLeave() = 0; | 142 virtual void HandleMouseLeave() = 0; |
| 142 | 143 |
| 143 // The contents' preferred size changed. | 144 // The contents' preferred size changed. |
| 144 virtual void UpdatePreferredSize(const gfx::Size& pref_size) = 0; | 145 virtual void UpdatePreferredSize(const gfx::Size& pref_size) = 0; |
| 145 }; | 146 }; |
| 146 | 147 |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 virtual bool IsExternalTabContainer() const; | 553 virtual bool IsExternalTabContainer() const; |
| 553 | 554 |
| 554 // The RenderView has inserted one css file into page. | 555 // The RenderView has inserted one css file into page. |
| 555 virtual void DidInsertCSS() {} | 556 virtual void DidInsertCSS() {} |
| 556 | 557 |
| 557 // A different node in the page got focused. | 558 // A different node in the page got focused. |
| 558 virtual void FocusedNodeChanged() {} | 559 virtual void FocusedNodeChanged() {} |
| 559 }; | 560 }; |
| 560 | 561 |
| 561 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 562 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |