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() {} |
259 virtual void HandleMouseDown() {} | 260 virtual void HandleMouseDown() {} |
260 virtual void HandleMouseUp() {} | 261 virtual void HandleMouseUp() {} |
261 | 262 |
262 // Handles activation resulting from a pointer event (e.g. when mouse is | 263 // Handles activation resulting from a pointer event (e.g. when mouse is |
263 // pressed, or a touch-gesture begins). | 264 // pressed, or a touch-gesture begins). |
264 virtual void HandlePointerActivate() {} | 265 virtual void HandlePointerActivate() {} |
265 | 266 |
266 virtual void HandleGestureBegin() {} | 267 virtual void HandleGestureBegin() {} |
267 virtual void HandleGestureEnd() {} | 268 virtual void HandleGestureEnd() {} |
268 | 269 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 // Called when |this| is no longer the WebContentsDelegate for |source|. | 431 // Called when |this| is no longer the WebContentsDelegate for |source|. |
431 void Detach(WebContents* source); | 432 void Detach(WebContents* source); |
432 | 433 |
433 // The WebContents that this is currently a delegate for. | 434 // The WebContents that this is currently a delegate for. |
434 std::set<WebContents*> attached_contents_; | 435 std::set<WebContents*> attached_contents_; |
435 }; | 436 }; |
436 | 437 |
437 } // namespace content | 438 } // namespace content |
438 | 439 |
439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |