| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 void Delete(); | 436 void Delete(); |
| 437 void SelectAll(); | 437 void SelectAll(); |
| 438 | 438 |
| 439 // Called when the reponse to a pending mouse lock request has arrived. | 439 // Called when the reponse to a pending mouse lock request has arrived. |
| 440 // Returns true if |allowed| is true and the mouse has been successfully | 440 // Returns true if |allowed| is true and the mouse has been successfully |
| 441 // locked. | 441 // locked. |
| 442 bool GotResponseToLockMouseRequest(bool allowed); | 442 bool GotResponseToLockMouseRequest(bool allowed); |
| 443 | 443 |
| 444 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 444 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 445 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. | 445 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. |
| 446 void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); | 446 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); |
| 447 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); |
| 447 #endif | 448 #endif |
| 448 | 449 |
| 449 protected: | 450 protected: |
| 450 // Internal implementation of the public Forward*Event() methods. | 451 // Internal implementation of the public Forward*Event() methods. |
| 451 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 452 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| 452 int event_size, bool is_keyboard_shortcut); | 453 int event_size, bool is_keyboard_shortcut); |
| 453 | 454 |
| 454 // Called when we receive a notification indicating that the renderer | 455 // Called when we receive a notification indicating that the renderer |
| 455 // process has gone. This will reset our state so that our state will be | 456 // process has gone. This will reset our state so that our state will be |
| 456 // consistent if a new renderer is created. | 457 // consistent if a new renderer is created. |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 gfx::Point last_scroll_offset_; | 778 gfx::Point last_scroll_offset_; |
| 778 | 779 |
| 779 bool pending_mouse_lock_request_; | 780 bool pending_mouse_lock_request_; |
| 780 | 781 |
| 781 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 782 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 782 | 783 |
| 783 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 784 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 784 }; | 785 }; |
| 785 | 786 |
| 786 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 787 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |