| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // |*is_keyboard_shortcut| should be set to true. | 249 // |*is_keyboard_shortcut| should be set to true. |
| 250 virtual bool PreHandleKeyboardEvent(WebContents* source, | 250 virtual bool PreHandleKeyboardEvent(WebContents* source, |
| 251 const NativeWebKeyboardEvent& event, | 251 const NativeWebKeyboardEvent& event, |
| 252 bool* is_keyboard_shortcut); | 252 bool* is_keyboard_shortcut); |
| 253 | 253 |
| 254 // Allows delegates to handle unhandled keyboard messages coming back from | 254 // Allows delegates to handle unhandled keyboard messages coming back from |
| 255 // the renderer. | 255 // the renderer. |
| 256 virtual void HandleKeyboardEvent(WebContents* source, | 256 virtual void HandleKeyboardEvent(WebContents* source, |
| 257 const NativeWebKeyboardEvent& event) {} | 257 const NativeWebKeyboardEvent& event) {} |
| 258 | 258 |
| 259 virtual void HandleMouseMove() {} | |
| 260 virtual void HandleMouseDown() {} | 259 virtual void HandleMouseDown() {} |
| 261 virtual void HandleMouseUp() {} | 260 virtual void HandleMouseUp() {} |
| 262 | 261 |
| 263 // Handles activation resulting from a pointer event (e.g. when mouse is | 262 // Handles activation resulting from a pointer event (e.g. when mouse is |
| 264 // pressed, or a touch-gesture begins). | 263 // pressed, or a touch-gesture begins). |
| 265 virtual void HandlePointerActivate() {} | 264 virtual void HandlePointerActivate() {} |
| 266 | 265 |
| 267 virtual void HandleGestureBegin() {} | 266 virtual void HandleGestureBegin() {} |
| 268 virtual void HandleGestureEnd() {} | 267 virtual void HandleGestureEnd() {} |
| 269 | 268 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 // Called when |this| is no longer the WebContentsDelegate for |source|. | 430 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 432 void Detach(WebContents* source); | 431 void Detach(WebContents* source); |
| 433 | 432 |
| 434 // The WebContents that this is currently a delegate for. | 433 // The WebContents that this is currently a delegate for. |
| 435 std::set<WebContents*> attached_contents_; | 434 std::set<WebContents*> attached_contents_; |
| 436 }; | 435 }; |
| 437 | 436 |
| 438 } // namespace content | 437 } // namespace content |
| 439 | 438 |
| 440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |