| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 void Undo(); | 450 void Undo(); |
| 451 void Redo(); | 451 void Redo(); |
| 452 void Cut(); | 452 void Cut(); |
| 453 void Copy(); | 453 void Copy(); |
| 454 void CopyToFindPboard(); | 454 void CopyToFindPboard(); |
| 455 void Paste(); | 455 void Paste(); |
| 456 void PasteAndMatchStyle(); | 456 void PasteAndMatchStyle(); |
| 457 void Delete(); | 457 void Delete(); |
| 458 void SelectAll(); | 458 void SelectAll(); |
| 459 | 459 |
| 460 // Requests spellchecking of text on focused node. If there is no focused |
| 461 // node, the method will not do anything. |
| 462 void RequestTextChecking(); |
| 463 |
| 460 // Called when the reponse to a pending mouse lock request has arrived. | 464 // Called when the reponse to a pending mouse lock request has arrived. |
| 461 // Returns true if |allowed| is true and the mouse has been successfully | 465 // Returns true if |allowed| is true and the mouse has been successfully |
| 462 // locked. | 466 // locked. |
| 463 bool GotResponseToLockMouseRequest(bool allowed); | 467 bool GotResponseToLockMouseRequest(bool allowed); |
| 464 | 468 |
| 465 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. | 469 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. |
| 466 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); | 470 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); |
| 467 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); | 471 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); |
| 468 | 472 |
| 469 protected: | 473 protected: |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 gfx::Point last_scroll_offset_; | 808 gfx::Point last_scroll_offset_; |
| 805 | 809 |
| 806 bool pending_mouse_lock_request_; | 810 bool pending_mouse_lock_request_; |
| 807 | 811 |
| 808 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 812 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 809 | 813 |
| 810 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 811 }; | 815 }; |
| 812 | 816 |
| 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 817 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |